From 0bda65b5acf6d358f99ad40a117e6b51bbefccc7 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 10 Oct 2024 21:13:50 +0200 Subject: [PATCH] Make sure that we don't immediately open all new rooms Some confusing interaction with the code removed here causes us to open all rooms that come in. We generally don't want that. I also don't understand why we're connecting for new rooms here - the room is already available in this case. --- src/roommanager.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/roommanager.cpp b/src/roommanager.cpp index 7db1da4b4..c93b8ef0b 100644 --- a/src/roommanager.cpp +++ b/src/roommanager.cpp @@ -158,21 +158,6 @@ void RoomManager::resolveResource(const QString &idOrUri, const QString &action) if ((uri.type() == Uri::RoomAlias || uri.type() == Uri::RoomId) && action != "no_join"_ls) { Q_EMIT askJoinRoom(uri.primaryId()); } - } else { - if (result != Quotient::UriResolved) { - return; - } - - if (uri.type() == Uri::RoomAlias || uri.type() == Uri::RoomId) { - connect( - m_connection.get(), - &NeoChatConnection::newRoom, - this, - [this, uri](Room *room) { - resolveResource(room->id()); - }, - Qt::SingleShotConnection); - } } }