From 887694bbf019799312a4e2625fdd8789d4385590 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 26 Mar 2020 14:15:08 +0100 Subject: [PATCH] [Client] Fix publish keys --- lib/src/client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;