Merge branch 'roomlist-fix-foundalgo' into 'master'
[RoomList] Fix found algo See merge request famedly/famedlysdk!78
This commit is contained in:
commit
e39d920d23
|
@ -96,7 +96,7 @@ class RoomList {
|
||||||
for (j = 0; j < rooms.length; j++) {
|
for (j = 0; j < rooms.length; j++) {
|
||||||
if (rooms[j].id == chatUpdate.id) break;
|
if (rooms[j].id == chatUpdate.id) break;
|
||||||
}
|
}
|
||||||
final bool found = (j < rooms.length - 1 && rooms[j].id == chatUpdate.id);
|
final bool found = (j < rooms.length && rooms[j].id == chatUpdate.id);
|
||||||
final bool isLeftRoom = chatUpdate.membership == Membership.leave;
|
final bool isLeftRoom = chatUpdate.membership == Membership.leave;
|
||||||
|
|
||||||
// Does the chat already exist in the list rooms?
|
// Does the chat already exist in the list rooms?
|
||||||
|
|
Loading…
Reference in a new issue