Skip to content

Commit

Permalink
runfix: add e2ei-verification type to expected events
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrykBuniX committed Jan 18, 2024
1 parent 1008e61 commit 2bd0d05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/script/conversation/ConversationRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2806,7 +2806,11 @@ export class ConversationRepository {

const inSelfConversation = this.conversationState.isSelfConversation(conversationId);
if (inSelfConversation) {
const typesInSelfConversation = [CONVERSATION_EVENT.MEMBER_UPDATE, ClientEvent.CONVERSATION.MESSAGE_HIDDEN];
const typesInSelfConversation = [
CONVERSATION_EVENT.MEMBER_UPDATE,
ClientEvent.CONVERSATION.MESSAGE_HIDDEN,
CLIENT_CONVERSATION_EVENT.E2EI_VERIFICATION,
];

const isExpectedType = typesInSelfConversation.includes(type);
if (!isExpectedType) {
Expand Down

0 comments on commit 2bd0d05

Please sign in to comment.