diff --git a/src/gui/MainPane/RoomList.qml b/src/gui/MainPane/RoomList.qml index d412d29b..dc4e9e9c 100644 --- a/src/gui/MainPane/RoomList.qml +++ b/src/gui/MainPane/RoomList.qml @@ -52,7 +52,7 @@ HListView { } function goToAccountNumber(num) { - const index = Object.entries(accountIndice).sort()[num][1] + const index = Object.entries(accountIndice)[num][1] model.get(index + 1).type === "Room" ? currentIndex = index + 1 :