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 { isOlderThan } from './timestamp';
|
||||||
import { isDirectConversation } from './whatTypeOfConversation';
|
import { isDirectConversation } from './whatTypeOfConversation';
|
||||||
import { queueAttachmentDownloads } from './queueAttachmentDownloads';
|
import { queueAttachmentDownloads } from './queueAttachmentDownloads';
|
||||||
import { shouldReplyNotifyUser } from './shouldReplyNotifyUser';
|
|
||||||
|
|
||||||
export async function handleEditMessage(
|
export async function handleEditMessage(
|
||||||
mainMessage: MessageAttributesType,
|
mainMessage: MessageAttributesType,
|
||||||
|
@ -291,10 +290,5 @@ export async function handleEditMessage(
|
||||||
// Clear typing indicator
|
// Clear typing indicator
|
||||||
const typingToken = `${editAttributes.fromId}.${editAttributes.fromDevice}`;
|
const typingToken = `${editAttributes.fromId}.${editAttributes.fromDevice}`;
|
||||||
conversation.clearContactTypingTimer(typingToken);
|
conversation.clearContactTypingTimer(typingToken);
|
||||||
|
|
||||||
// Update notifications
|
|
||||||
if (await shouldReplyNotifyUser(mainMessageModel, conversation)) {
|
|
||||||
await conversation.notify(mainMessageModel);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue