Do not trigger notifications for edited messages
This commit is contained in:
parent
f90c2b7479
commit
45b4a7da56
1 changed files with 0 additions and 6 deletions
|
@ -21,7 +21,6 @@ import { isIncoming, isOutgoing } from '../messages/helpers';
|
|||
import { isOlderThan } from './timestamp';
|
||||
import { isDirectConversation } from './whatTypeOfConversation';
|
||||
import { queueAttachmentDownloads } from './queueAttachmentDownloads';
|
||||
import { shouldReplyNotifyUser } from './shouldReplyNotifyUser';
|
||||
|
||||
export async function handleEditMessage(
|
||||
mainMessage: MessageAttributesType,
|
||||
|
@ -291,10 +290,5 @@ export async function handleEditMessage(
|
|||
// Clear typing indicator
|
||||
const typingToken = `${editAttributes.fromId}.${editAttributes.fromDevice}`;
|
||||
conversation.clearContactTypingTimer(typingToken);
|
||||
|
||||
// Update notifications
|
||||
if (await shouldReplyNotifyUser(mainMessageModel, conversation)) {
|
||||
await conversation.notify(mainMessageModel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue