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
1 changed files with 1 additions and 1 deletions

View File

@ -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;