From 315237b41180f0ac3dd2801888b6a2e72e09c4bc Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 15 May 2020 17:07:43 -0400 Subject: [PATCH] Cycle unread rooms with alt+m when no more mention --- src/gui/MainPane/RoomList.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui/MainPane/RoomList.qml b/src/gui/MainPane/RoomList.qml index b80d3192..10229e87 100644 --- a/src/gui/MainPane/RoomList.qml +++ b/src/gui/MainPane/RoomList.qml @@ -148,9 +148,13 @@ HListView { while (true) { index += forward ? 1 : -1 - if (index < 0) index = model.count - 1 + if (index < 0) index = model.count - 1 if (index > model.count - 1) index = 0 - if (index === start) return false + + if (index === start && mentions) + return cycleUnreadRooms(forward, false) + else if (index === start) + return false const item = model.get(index)