Fix focusRoomAtIndex binds
This commit is contained in:
parent
ac0907fad7
commit
1a69ae684e
|
@ -76,15 +76,11 @@ HListView {
|
||||||
}
|
}
|
||||||
|
|
||||||
function showAccountRoomAtIndex(index) {
|
function showAccountRoomAtIndex(index) {
|
||||||
const userId = model.filtered.get(
|
const currentUserId = model.filtered.get(
|
||||||
currentIndex === -1 ? 0 : currentIndex
|
currentIndex === -1 ? 0 : currentIndex
|
||||||
).model.for_account
|
).model.for_account
|
||||||
|
|
||||||
const rooms = ModelStore.get(userId, "rooms")
|
showRoomAtIndex(sectionIndice[currentUserId] + index)
|
||||||
if (! rooms.count) return
|
|
||||||
|
|
||||||
const room = rooms.get(utils.numberWrapAt(index, rooms.count))
|
|
||||||
showRoomAtIndex(model.filteredFindIndex(room.id))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user