Merge pull request #3066 from yougotwill/fix/no-ref/group_notifications

fix: legacy groups are unapproved so should allow all notifications
pull/3067/head
Audric Ackermann 1 month ago committed by GitHub
commit 9505407fc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1739,9 +1739,11 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
return;
}
const conversationId = this.id;
const isLegacyGroup = this.isClosedGroup() && this.id.startsWith('05');
let friendRequestText;
if (!this.isApproved()) {
// NOTE: legacy groups are never approved, so we should not cancel notifications
if (!this.isApproved() && !isLegacyGroup) {
window?.log?.info('notification cancelled for unapproved convo', this.idForLogging());
const hadNoRequestsPrior =
getConversationController()

Loading…
Cancel
Save