Skip to content

Commit

Permalink
Merge pull request #3066 from yougotwill/fix/no-ref/group_notifications
Browse files Browse the repository at this point in the history
fix: legacy groups are unapproved so should allow all notifications
  • Loading branch information
Bilb committed Apr 5, 2024
2 parents 563e4cc + a139299 commit 9505407
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/models/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9505407

Please sign in to comment.