mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
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
@ -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 New Issue
Block a user