Fix incorrect account switching keybind order

The keybinds to switch to the first room in account number X did not
behave properly when the accounts weren't ordered lexically.
This commit is contained in:
miruka 2020-11-14 11:31:07 -04:00
parent 3564e7a571
commit 93eba7ce92

View File

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