From 1abda1fa138bb270bbf8cc9904cd6423d9240090 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 26 Mar 2020 14:02:07 +0100 Subject: [PATCH] [Client] Fix mark keys as published --- lib/src/client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 2aabe99..4fb2bb0 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1606,11 +1606,11 @@ class Client { action: "/client/r0/keys/upload", data: keysContent, ); + _olmAccount.mark_keys_as_published(); if (response["one_time_key_counts"]["signed_curve25519"] != oneTimeKeysCount) { return false; } - _olmAccount.mark_keys_as_published(); await storeAPI?.storeClient(); lastTimeKeysUploaded = DateTime.now(); return true;