tell caller if an update was done from summery.writeAndApplyData

so room actually emits an update
This commit is contained in:
Bruno Windels 2020-09-23 19:10:25 +02:00
parent 17f84ab314
commit eb4237f6f4

View File

@ -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) {