forked from mystiq/hydrogen-web
ensure cloned is always set to false for this._data
by making all assignments of this._data go through applyChanges
This commit is contained in:
parent
b03cbc3ae9
commit
46abafdccc
1 changed files with 3 additions and 2 deletions
|
@ -223,7 +223,8 @@ class SummaryData {
|
||||||
|
|
||||||
export class RoomSummary {
|
export class RoomSummary {
|
||||||
constructor(roomId) {
|
constructor(roomId) {
|
||||||
this._data = new SummaryData(null, roomId);
|
this._data = null;
|
||||||
|
this.applyChanges(new SummaryData(null, roomId));
|
||||||
}
|
}
|
||||||
|
|
||||||
get data() {
|
get data() {
|
||||||
|
@ -286,7 +287,7 @@ export class RoomSummary {
|
||||||
}
|
}
|
||||||
|
|
||||||
async load(summary) {
|
async load(summary) {
|
||||||
this._data = new SummaryData(summary);
|
this.applyChanges(new SummaryData(summary));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue