summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-01 01:46:22 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-01 01:46:22 +0100
commita0fad2513eff0105535b64ed118ed702e30014bc (patch)
tree396999588c086692ba0363f187b51934aee7c697 /src/ChatPage.cpp
parentTranslated using Weblate (French) (diff)
downloadnheko-a0fad2513eff0105535b64ed118ed702e30014bc.tar.xz
Don't ask to join joined rooms when clicking matrix uri
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index aae9271d..c21c3571 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -1419,7 +1419,7 @@ ChatPage::handleMatrixUri(const QByteArray &uri)
                 for (auto roomid : joined_rooms) {
                         if (roomid == targetRoomId) {
                                 room_list_->highlightSelectedRoom(mxid1);
-                                break;
+                                return;
                         }
                 }
 
@@ -1436,7 +1436,7 @@ ChatPage::handleMatrixUri(const QByteArray &uri)
                                 if (aliases->alias == targetRoomAlias) {
                                         room_list_->highlightSelectedRoom(
                                           QString::fromStdString(roomid));
-                                        break;
+                                        return;
                                 }
                         }
                 }