From 429e20417c1ae6a733dc9107aea11a4d465b2029 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 ddf6992dd..a3b9db8f8 100644 --- a/src/roommanager.cpp +++ b/src/roommanager.cpp @@ -88,7 +88,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.