Skip to content

Commit 3666269

Browse files
authored
fix: Sending messages while user is offline and multiple messages send [WPB-17219] (#19149)
* fix: Sending messages while user is offline and multiple messages send * revert ConversationRepository changes * update check if e2ei is enabled
1 parent 7c761af commit 3666269

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/script/conversation/ConversationVerificationStateHandler/MLS/MLSStateHandler.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,15 @@ export class MLSConversationVerificationStateHandler {
198198
};
199199

200200
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+
201208
// Is the feature supported and enabled?
202-
const isMLSAndE2EIEnabled = (await this.core.isMLSActiveForClient()) && E2EIHandler.getInstance().isE2EIEnabled();
209+
const isMLSAndE2EIEnabled = await this.core.isMLSActiveForClient();
203210
// We only want to check MLS conversations that are not self conversations
204211
const isMLSAndNotSelfConversation =
205212
isMLSConversation(conversation) && conversation.type() !== CONVERSATION_TYPE.SELF;

0 commit comments

Comments
 (0)