mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Remove code
This commit is contained in:
parent
bfd54f2764
commit
34dd7e4fa5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user