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:
parent
a33902e382
commit
4f4bc90faa
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user