comment about session backup

This commit is contained in:
Bruno Windels 2021-03-02 21:30:00 +01:00
parent 3bfe52b1dc
commit 3671574547

View File

@ -536,6 +536,7 @@ export class Room extends EventEmitter {
enableSessionBackup(sessionBackup) {
this._roomEncryption?.enableSessionBackup(sessionBackup);
// TODO: do we really want to do this every time you open the app?
if (this._timeline) {
const timelineEvents = this._timeline.remoteEntries.filter(e => e.event).map(e => e.event);
this._roomEncryption.restoreMissingSessionsFromBackup(timelineEvents);