mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
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
@ -223,7 +223,8 @@ class SummaryData {
|
||||
|
||||
export class RoomSummary {
|
||||
constructor(roomId) {
|
||||
this._data = new SummaryData(null, roomId);
|
||||
this._data = null;
|
||||
this.applyChanges(new SummaryData(null, roomId));
|
||||
}
|
||||
|
||||
get data() {
|
||||
@ -286,7 +287,7 @@ export class RoomSummary {
|
||||
}
|
||||
|
||||
async load(summary) {
|
||||
this._data = new SummaryData(summary);
|
||||
this.applyChanges(new SummaryData(summary));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user