[Client] Fix publish keys

This commit is contained in:
Christian Pauly 2020-03-26 14:15:08 +01:00
parent 1abda1fa13
commit 887694bbf0

View file

@ -1601,12 +1601,12 @@ class Client {
signJson(keysContent["device_keys"] as Map<String, dynamic>); signJson(keysContent["device_keys"] as Map<String, dynamic>);
} }
_olmAccount.mark_keys_as_published();
final Map<String, dynamic> response = await jsonRequest( final Map<String, dynamic> response = await jsonRequest(
type: HTTPType.POST, type: HTTPType.POST,
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;