Fix AccountBar goToAccount errors

This commit is contained in:
miruka
2020-05-14 03:49:52 -04:00
parent 9b5b3a9f06
commit 5b05e56b2a
2 changed files with 11 additions and 4 deletions

View File

@@ -61,6 +61,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]