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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user