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