From 2b24de838a24b2b7bdcb3f0d8b94cc3d4ae0d082 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 15 Mar 2021 15:24:57 +0100 Subject: [PATCH] actually log initial session backup enabling rather than using null log --- src/matrix/room/Room.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index 5e3ef643..7326e32f 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -589,7 +589,9 @@ export class Room extends EventEmitter { this._roomEncryption?.enableSessionBackup(sessionBackup); // TODO: do we really want to do this every time you open the app? if (this._timeline) { - this._roomEncryption.restoreMissingSessionsFromBackup(this._timeline.remoteEntries, ensureLogItem()); + this._platform.logger.run("enableSessionBackup", log => { + return this._roomEncryption.restoreMissingSessionsFromBackup(this._timeline.remoteEntries, log); + }); } }