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) {
|
async writeAndApplyData(data, storage) {
|
||||||
if (data === this._data) {
|
if (data === this._data) {
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
const txn = await storage.readWriteTxn([
|
const txn = await storage.readWriteTxn([
|
||||||
storage.storeNames.roomSummary,
|
storage.storeNames.roomSummary,
|
||||||
|
@ -275,6 +275,7 @@ export class RoomSummary {
|
||||||
}
|
}
|
||||||
await txn.complete();
|
await txn.complete();
|
||||||
this.applyChanges(data);
|
this.applyChanges(data);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
applyChanges(data) {
|
applyChanges(data) {
|
||||||
|
|
Reference in a new issue