mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user