Skip to content

Commit

Permalink
fix: Correct logic for sending broadcast messages when mismatch happe…
Browse files Browse the repository at this point in the history
…ns (#14824)
  • Loading branch information
atomrc committed Mar 13, 2023
1 parent 75827cb commit 8ecc612
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 @@ -249,7 +249,11 @@ export class ConversationRepository {
shouldWarnLegalHold = hasChangedLegalHoldStatus && newDevices.some(device => device.isLegalHold());
}
}
return !conversation || silent
if (!conversation) {
// in case of a broadcast message, we want to keep sending the message even if there are some conversation degradation
return true;
}
return silent
? false
: this.messageRepository.requestUserSendingPermission(conversation, shouldWarnLegalHold, consentType);
});
Expand Down

0 comments on commit 8ecc612

Please sign in to comment.