Fix crash when visiting user

We're adding the "join" action so that rooms are joined.
libQuotient doesn't like it when we the action is join and the uri is for a user.

BUG: 483744
This commit is contained in:
Tobias Fella
2024-03-22 22:39:26 +01:00
parent 8398b7d24d
commit 6e7d622b41

View File

@@ -91,7 +91,7 @@ void RoomManager::resolveResource(const QString &idOrUri, const QString &action)
if (!m_connection) {
return;
}
if (!action.isEmpty()) {
if (!action.isEmpty() && (uri.type() != Uri::UserId || action != "join"_ls)) {
uri.setAction(action);
}
// TODO we should allow the user to select a connection.