Don't ask to join joined rooms when clicking matrix uri

This commit is contained in:
Nicolas Werner 2021-03-01 01:46:22 +01:00
parent a651643f6e
commit a0fad2513e
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -1419,7 +1419,7 @@ ChatPage::handleMatrixUri(const QByteArray &uri)
for (auto roomid : joined_rooms) { for (auto roomid : joined_rooms) {
if (roomid == targetRoomId) { if (roomid == targetRoomId) {
room_list_->highlightSelectedRoom(mxid1); room_list_->highlightSelectedRoom(mxid1);
break; return;
} }
} }
@ -1436,7 +1436,7 @@ ChatPage::handleMatrixUri(const QByteArray &uri)
if (aliases->alias == targetRoomAlias) { if (aliases->alias == targetRoomAlias) {
room_list_->highlightSelectedRoom( room_list_->highlightSelectedRoom(
QString::fromStdString(roomid)); QString::fromStdString(roomid));
break; return;
} }
} }
} }