From 62fe7a1704c418f343d412756649f81f7a7d807a Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Mon, 27 Sep 2021 09:13:17 +0200 Subject: [PATCH] fix: New verification requests on requesting history If requesting history happens to contain a m.key.verification.request we currently create a new key verification object and push it to the client. This fixes it. --- lib/encryption/encryption.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/encryption/encryption.dart b/lib/encryption/encryption.dart index 010544fb..531ec4de 100644 --- a/lib/encryption/encryption.dart +++ b/lib/encryption/encryption.dart @@ -135,7 +135,8 @@ class Encryption { } Future handleEventUpdate(EventUpdate update) async { - if (update.type == EventUpdateType.ephemeral) { + if (update.type == EventUpdateType.ephemeral || + update.type == EventUpdateType.history) { return; } if (update.content['type'].startsWith('m.key.verification.') ||