From 59486ca65d65a346699f9522e5b9b3d9a3bb5fa0 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 17 May 2020 15:32:10 -0400 Subject: [PATCH] Fix setCorrectCurrentItem() for account items --- src/gui/MainPane/RoomList.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/MainPane/RoomList.qml b/src/gui/MainPane/RoomList.qml index b93c7c9a..a6b5a52d 100644 --- a/src/gui/MainPane/RoomList.qml +++ b/src/gui/MainPane/RoomList.qml @@ -182,8 +182,7 @@ HListView { ) || ( currentShouldBeAccount && item.type === "Account" && - item.id === wantedRoomId && - item.for_account === wantedUserId + item.id === wantedUserId )) { currentIndex = i return true