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:
@@ -43,11 +43,7 @@ HListView {
|
||||
}
|
||||
|
||||
function goToAccount(userId) {
|
||||
accountIndice[userId] + 1 <= model.count -1 &&
|
||||
model.get(accountIndice[userId] + 1).type === "Room" ?
|
||||
currentIndex = accountIndice[userId] + 1 :
|
||||
currentIndex = accountIndice[userId]
|
||||
|
||||
showItemLimiter.restart()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user