forked from mystiq/hydrogen-web
tell caller if an update was done from summery.writeAndApplyData
so room actually emits an update
This commit is contained in:
parent
17f84ab314
commit
eb4237f6f4
1 changed files with 2 additions and 1 deletions
|
@ -262,7 +262,7 @@ export class RoomSummary {
|
|||
|
||||
async writeAndApplyData(data, storage) {
|
||||
if (data === this._data) {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
const txn = await storage.readWriteTxn([
|
||||
storage.storeNames.roomSummary,
|
||||
|
@ -275,6 +275,7 @@ export class RoomSummary {
|
|||
}
|
||||
await txn.complete();
|
||||
this.applyChanges(data);
|
||||
return true;
|
||||
}
|
||||
|
||||
applyChanges(data) {
|
||||
|
|
Loading…
Reference in a new issue