Fix setCorrectCurrentItem() for account items

This commit is contained in:
miruka 2020-05-17 15:32:10 -04:00
parent ef9b880152
commit 59486ca65d

View File

@ -182,8 +182,7 @@ HListView {
) || ( ) || (
currentShouldBeAccount && currentShouldBeAccount &&
item.type === "Account" && item.type === "Account" &&
item.id === wantedRoomId && item.id === wantedUserId
item.for_account === wantedUserId
)) { )) {
currentIndex = i currentIndex = i
return true return true