Terminology: room mention count → highlight count

This commit is contained in:
miruka
2020-05-31 19:13:19 -04:00
parent dce3328037
commit 3791a08eea
7 changed files with 32 additions and 31 deletions

View File

@@ -140,8 +140,8 @@ HListView {
showItemAtIndex(accountIndice[currentUserId] + 1 + index)
}
function cycleUnreadRooms(forward=true, mentions=false) {
const prop = mentions ? "mentions" : "unreads"
function cycleUnreadRooms(forward=true, highlights=false) {
const prop = highlights ? "highlights" : "unreads"
const start = currentIndex === -1 ? 0 : currentIndex
let index = start
@@ -151,7 +151,7 @@ HListView {
if (index < 0) index = model.count - 1
if (index > model.count - 1) index = 0
if (index === start && mentions)
if (index === start && highlights)
return cycleUnreadRooms(forward, false)
else if (index === start)
return false