Don't focus 1st room when clicking on account bar

When clicking on an account in the top account bar or using the
Keys.Account.(previous/next) keybinds, go to the corresponding
account settings instead of trying to focus the first room of that
account if there is one: user might not want to clear the read marker of
any random room that is out of view and happens to be the first in the
list.
This commit is contained in:
miruka 2021-01-05 11:11:24 -04:00
parent a33902e382
commit 4f4bc90faa

View File

@ -43,11 +43,7 @@ HListView {
} }
function goToAccount(userId) { function goToAccount(userId) {
accountIndice[userId] + 1 <= model.count -1 &&
model.get(accountIndice[userId] + 1).type === "Room" ?
currentIndex = accountIndice[userId] + 1 :
currentIndex = accountIndice[userId] currentIndex = accountIndice[userId]
showItemLimiter.restart() showItemLimiter.restart()
} }