diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts index 6c034c964..474ddf144 100644 --- a/ts/models/conversation.ts +++ b/ts/models/conversation.ts @@ -1412,8 +1412,16 @@ export class ConversationModel extends Backbone.Model { const text = message.get('body'); const mentions = text?.match(regex) || ([] as Array); const mentionMe = mentions && mentions.some(m => UserUtils.isUsFromCache(m.slice(1))); - if (!mentionMe) { - window?.log?.info('notifications disabled for non mentions for convo', conversationId); + + const quotedMessageAuthor = message.get('quote')?.author; + + const isReplyToOurMessage = + quotedMessageAuthor && UserUtils.isUsFromCache(quotedMessageAuthor); + if (!mentionMe && !isReplyToOurMessage) { + window?.log?.info( + 'notifications disabled for non mentions or reply for convo', + conversationId + ); return; } diff --git a/ts/opengroup/opengroupV2/OpenGroupServerPoller.ts b/ts/opengroup/opengroupV2/OpenGroupServerPoller.ts index 44357bf75..0a6994d4f 100644 --- a/ts/opengroup/opengroupV2/OpenGroupServerPoller.ts +++ b/ts/opengroup/opengroupV2/OpenGroupServerPoller.ts @@ -19,7 +19,6 @@ import { OpenGroupMessageV2 } from './OpenGroupMessageV2'; import { handleOpenGroupV2Message } from '../../receiver/receiver'; import autoBind from 'auto-bind'; import { sha256 } from '../../session/crypto'; -import { fromBase64ToArrayBuffer } from '../../session/utils/String'; import { DURATION } from '../../session/constants'; const pollForEverythingInterval = DURATION.SECONDS * 10;