Cycle unread rooms with alt+m when no more mention

This commit is contained in:
miruka 2020-05-15 17:07:43 -04:00
parent ddf7e724fd
commit 315237b411

View File

@ -148,9 +148,13 @@ HListView {
while (true) { while (true) {
index += forward ? 1 : -1 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 > 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) const item = model.get(index)