fix notification count

This commit is contained in:
Sorunome 2020-05-19 10:15:23 +02:00
parent a613c84e27
commit b2e5ad0880
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 3 additions and 3 deletions

View File

@ -1216,14 +1216,14 @@ class Client {
prev_batch: prev_batch,
summary: summary,
);
if (database != null) {
await database.storeRoomUpdate(this.id, update, getRoomById(id));
}
_updateRoomsByRoomUpdate(update);
final roomObj = getRoomById(id);
if (limitedTimeline && roomObj != null) {
roomObj.resetSortOrder();
}
if (database != null) {
await database.storeRoomUpdate(this.id, update, getRoomById(id));
}
onRoomUpdate.add(update);
var handledEvents = false;