mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
don't assume we have a timeline
This commit is contained in:
parent
9b771120e4
commit
1af118a443
@ -92,7 +92,9 @@ export class Room extends EventEmitter {
|
|||||||
this._roomEncryption = this._createRoomEncryption(this, encryptionParams);
|
this._roomEncryption = this._createRoomEncryption(this, encryptionParams);
|
||||||
if (this._roomEncryption) {
|
if (this._roomEncryption) {
|
||||||
this._sendQueue.enableEncryption(this._roomEncryption);
|
this._sendQueue.enableEncryption(this._roomEncryption);
|
||||||
this._timeline.enableEncryption(this._decryptEntries.bind(this));
|
if (this._timeline) {
|
||||||
|
this._timeline.enableEncryption(this._decryptEntries.bind(this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user