File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/script/conversation/ConversationVerificationStateHandler/MLS Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -198,8 +198,15 @@ export class MLSConversationVerificationStateHandler {
198
198
} ;
199
199
200
200
public checkConversationVerificationState = async ( conversation : Conversation ) : Promise < void > => {
201
+ // Is the E2EI feature enabled?
202
+ const isE2EIEnabled = E2EIHandler . getInstance ( ) . isE2EIEnabled ( ) ;
203
+
204
+ if ( ! isE2EIEnabled ) {
205
+ return ;
206
+ }
207
+
201
208
// Is the feature supported and enabled?
202
- const isMLSAndE2EIEnabled = ( await this . core . isMLSActiveForClient ( ) ) && E2EIHandler . getInstance ( ) . isE2EIEnabled ( ) ;
209
+ const isMLSAndE2EIEnabled = await this . core . isMLSActiveForClient ( ) ;
203
210
// We only want to check MLS conversations that are not self conversations
204
211
const isMLSAndNotSelfConversation =
205
212
isMLSConversation ( conversation ) && conversation . type ( ) !== CONVERSATION_TYPE . SELF ;
You can’t perform that action at this time.
0 commit comments