From b7fb6026f4e42bdad19e8f0290be5193903825de Mon Sep 17 00:00:00 2001 From: PatrykBuniX Date: Thu, 18 Jan 2024 20:38:59 +0100 Subject: [PATCH] runfix: exclude self mls conversation from setting verification state --- .../MLS/MLSStateHandler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/script/conversation/ConversationVerificationStateHandler/MLS/MLSStateHandler.ts b/src/script/conversation/ConversationVerificationStateHandler/MLS/MLSStateHandler.ts index 342756d86416..1d1da97e8016 100644 --- a/src/script/conversation/ConversationVerificationStateHandler/MLS/MLSStateHandler.ts +++ b/src/script/conversation/ConversationVerificationStateHandler/MLS/MLSStateHandler.ts @@ -17,6 +17,7 @@ * */ +import {CONVERSATION_TYPE} from '@wireapp/api-client/lib/conversation'; import {QualifiedId} from '@wireapp/api-client/lib/user'; import {E2eiConversationState} from '@wireapp/core/lib/messagingProtocols/mls'; import {container} from 'tsyringe'; @@ -99,7 +100,8 @@ class MLSConversationVerificationStateHandler { return this.logger.warn(`Epoch changed but conversation could not be found after waiting for 5 seconds`); } - if (!isMLSConversation(conversation)) { + const isSelfMLSConversation = isMLSConversation(conversation) && conversation.type() === CONVERSATION_TYPE.SELF; + if (!isMLSConversation(conversation) || isSelfMLSConversation) { return; }