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:
Sorunome 2021-09-01 17:42:49 +02:00
parent 62694248b9
commit 33d31cecd1
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 2 additions and 1 deletions

View File

@ -1492,7 +1492,8 @@ class Client extends MatrixApi {
(rooms[j].membership != chatUpdate.membership ||
rooms[j].notificationCount != chatUpdate.notification_count ||
rooms[j].highlightCount != chatUpdate.highlight_count ||
chatUpdate.summary != null)) {
chatUpdate.summary != null ||
chatUpdate.prev_batch != null)) {
rooms[j].membership = chatUpdate.membership;
rooms[j].notificationCount = chatUpdate.notification_count;
rooms[j].highlightCount = chatUpdate.highlight_count;