diff --git a/lib/src/client.dart b/lib/src/client.dart index 4fb2bb0..d43095c 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1601,12 +1601,12 @@ class Client { signJson(keysContent["device_keys"] as Map); } + _olmAccount.mark_keys_as_published(); final Map 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;