From 34dd7e4fa5f931a4fba85835660ec44e3307fe45 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 19 Aug 2022 16:31:48 +0530 Subject: [PATCH] Remove code --- src/matrix/Client.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/matrix/Client.js b/src/matrix/Client.js index 438bf3ab..44643cc1 100644 --- a/src/matrix/Client.js +++ b/src/matrix/Client.js @@ -451,12 +451,6 @@ export class Client { async deleteSession(log) { if (this._sessionId) { - await log.wrap("sessionStore", async () => { - const storage = this._storage ?? await this._platform.storageFactory.create(this._sessionId, log); - const txn = await storage.readWriteTxn([storage.storeNames.session]); - txn.session.delete(); - storage.close(); - }); // need to dispose first, so the storage is closed, // and also first sync finishing won't call Session.start anymore, // which assumes that the storage works.