[Client] Fix publish keys

This commit is contained in:
Christian Pauly 2020-03-26 14:15:08 +01:00
parent 1abda1fa13
commit 887694bbf0
1 changed files with 1 additions and 1 deletions

View File

@ -1601,12 +1601,12 @@ class Client {
signJson(keysContent["device_keys"] as Map<String, dynamic>);
}
_olmAccount.mark_keys_as_published();
final Map<String, dynamic> response = await jsonRequest(
type: HTTPType.POST,
action: "/client/r0/keys/upload",
data: keysContent,
);
_olmAccount.mark_keys_as_published();
if (response["one_time_key_counts"]["signed_curve25519"] !=
oneTimeKeysCount) {
return false;