Merge branch 'client-fix-publish-keys' into 'master'

[Client] Fix publish keys

See merge request famedly/famedlysdk!249
This commit is contained in:
Christian Pauly 2020-03-26 13:19:39 +00:00
commit 8129ac00a2

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;