Merge branch 'soru/fix-notification-count' into 'master'

fix notification count

See merge request famedly/famedlysdk!312
This commit is contained in:
Christian Pauly 2020-05-19 08:20:39 +00:00
commit 359e03496a

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;