Skip to content

Commit

Permalink
runfix: exclude self mls conversation from setting verification state
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrykBuniX committed Jan 18, 2024
1 parent f20d2bb commit b7fb602
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b7fb602

Please sign in to comment.