[Client] Fix mark keys as published

This commit is contained in:
Christian Pauly 2020-03-26 14:02:07 +01:00
parent 4352a5cedb
commit 1abda1fa13

View file

@ -1606,11 +1606,11 @@ class Client {
action: "/client/r0/keys/upload", action: "/client/r0/keys/upload",
data: keysContent, data: keysContent,
); );
_olmAccount.mark_keys_as_published();
if (response["one_time_key_counts"]["signed_curve25519"] != if (response["one_time_key_counts"]["signed_curve25519"] !=
oneTimeKeysCount) { oneTimeKeysCount) {
return false; return false;
} }
_olmAccount.mark_keys_as_published();
await storeAPI?.storeClient(); await storeAPI?.storeClient();
lastTimeKeysUploaded = DateTime.now(); lastTimeKeysUploaded = DateTime.now();
return true; return true;