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;
}
}
}
|