Merge branch 'client-fix-mark-keys-as-published' into 'master'

[Client] Fix mark keys as published

See merge request famedly/famedlysdk!248
This commit is contained in:
Christian Pauly 2020-03-26 13:06:40 +00:00
commit d5df12d294

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;