Keys.Account.AtIndex binds: don't focus 1st room

Go to the corresponding account settings instead of trying to focus the
first room of the target account if there is one.

This makes the behavior consistent across expanded and collapsed
accounts, and with the Keys.Account.(previous/next) keybinds that
were changed to work in this way in commit
4f4bc90faa.
This commit is contained in:
miruka 2021-04-09 02:28:31 -04:00
parent 806983db93
commit 57a7b567ca

View File

@ -48,12 +48,7 @@ HListView {
}
function goToAccountNumber(num) {
const index = Object.entries(accountIndice)[num][1]
model.get(index + 1).type === "Room" ?
currentIndex = index + 1 :
currentIndex = index
currentIndex = Object.entries(accountIndice)[num][1]
showItemLimiter.restart()
}