mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix typos preventing to load the history visibility
This commit is contained in:
parent
0df66b5aea
commit
319ec37864
@ -136,9 +136,9 @@ export class RoomEncryption {
|
|||||||
if (!txn) {
|
if (!txn) {
|
||||||
txn = await this._storage.readTxn([this._storage.storeNames.roomState]);
|
txn = await this._storage.readTxn([this._storage.storeNames.roomState]);
|
||||||
}
|
}
|
||||||
const visibilityEntry = await txn.roomState.get(this.id, ROOM_HISTORY_VISIBILITY_TYPE, "");
|
const visibilityEntry = await txn.roomState.get(this._room.id, ROOM_HISTORY_VISIBILITY_TYPE, "");
|
||||||
if (visibilityEntry) {
|
if (visibilityEntry) {
|
||||||
return event?.content?.history_visibility;
|
return visibilityEntry.event?.content?.history_visibility;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return historyVisibility;
|
return historyVisibility;
|
||||||
|
Loading…
Reference in New Issue
Block a user