Skip to content

Commit

Permalink
runfix: add e2ei-verification type to expected events (#16554)
Browse files Browse the repository at this point in the history
* runfix: exclude self mls conversation from setting verification state

* refactor: simplify if statement

* chore: unstuck ci please
  • Loading branch information
PatrykBuniX committed Jan 22, 2024
1 parent 921b741 commit b3ade98
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 isSelfConversation = conversation.type() === CONVERSATION_TYPE.SELF;
if (!isMLSConversation(conversation) || isSelfConversation) {
return;
}

Expand Down

0 comments on commit b3ade98

Please sign in to comment.