[Client] Fix mark keys as published
This commit is contained in:
parent
4352a5cedb
commit
1abda1fa13
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue