fix: Missing chatUpdate.prev_batch != null test
We *always* have to update the in-memory prev_batch if it is non-null
This commit is contained in:
parent
62694248b9
commit
33d31cecd1
|
|
@ -1492,7 +1492,8 @@ class Client extends MatrixApi {
|
||||||
(rooms[j].membership != chatUpdate.membership ||
|
(rooms[j].membership != chatUpdate.membership ||
|
||||||
rooms[j].notificationCount != chatUpdate.notification_count ||
|
rooms[j].notificationCount != chatUpdate.notification_count ||
|
||||||
rooms[j].highlightCount != chatUpdate.highlight_count ||
|
rooms[j].highlightCount != chatUpdate.highlight_count ||
|
||||||
chatUpdate.summary != null)) {
|
chatUpdate.summary != null ||
|
||||||
|
chatUpdate.prev_batch != null)) {
|
||||||
rooms[j].membership = chatUpdate.membership;
|
rooms[j].membership = chatUpdate.membership;
|
||||||
rooms[j].notificationCount = chatUpdate.notification_count;
|
rooms[j].notificationCount = chatUpdate.notification_count;
|
||||||
rooms[j].highlightCount = chatUpdate.highlight_count;
|
rooms[j].highlightCount = chatUpdate.highlight_count;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue