From bf9a24df823cbb4e7ca35487a589697598e8e185 Mon Sep 17 00:00:00 2001 From: td Date: Mon, 13 Nov 2023 16:48:42 +0530 Subject: [PATCH] fix: clear local database on logout even if server timesout --- lib/src/client.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index e8bc59e17..23d2195c5 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -553,10 +553,9 @@ class Client extends MatrixApi { /// including all persistent data from the store. @override Future logout() async { - // Upload keys to make sure all are cached on the next login. - await encryption?.keyManager.uploadInboundGroupSessions(); - try { + // Upload keys to make sure all are cached on the next login. + await encryption?.keyManager.uploadInboundGroupSessions(); await super.logout(); } catch (e, s) { Logs().e('Logout failed', e, s);