fix notification count
This commit is contained in:
parent
a613c84e27
commit
b2e5ad0880
|
@ -1216,14 +1216,14 @@ class Client {
|
||||||
prev_batch: prev_batch,
|
prev_batch: prev_batch,
|
||||||
summary: summary,
|
summary: summary,
|
||||||
);
|
);
|
||||||
|
if (database != null) {
|
||||||
|
await database.storeRoomUpdate(this.id, update, getRoomById(id));
|
||||||
|
}
|
||||||
_updateRoomsByRoomUpdate(update);
|
_updateRoomsByRoomUpdate(update);
|
||||||
final roomObj = getRoomById(id);
|
final roomObj = getRoomById(id);
|
||||||
if (limitedTimeline && roomObj != null) {
|
if (limitedTimeline && roomObj != null) {
|
||||||
roomObj.resetSortOrder();
|
roomObj.resetSortOrder();
|
||||||
}
|
}
|
||||||
if (database != null) {
|
|
||||||
await database.storeRoomUpdate(this.id, update, getRoomById(id));
|
|
||||||
}
|
|
||||||
onRoomUpdate.add(update);
|
onRoomUpdate.add(update);
|
||||||
|
|
||||||
var handledEvents = false;
|
var handledEvents = false;
|
||||||
|
|
Loading…
Reference in a new issue