From 6e7d622b4118333b01c63e2a86b5a15b840b3144 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 22 Mar 2024 22:39:26 +0100 Subject: [PATCH] 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 --- src/roommanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roommanager.cpp b/src/roommanager.cpp index 82d630cb1..8ccd60223 100644 --- a/src/roommanager.cpp +++ b/src/roommanager.cpp @@ -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.