Clear typing indicator after receiving edits
This commit is contained in:
parent
9c325ea724
commit
3abacb25ce
4 changed files with 9 additions and 2 deletions
|
@ -272,9 +272,12 @@ export async function handleEditMessage(
|
|||
);
|
||||
|
||||
drop(mainMessageModel.getConversation()?.updateLastMessage());
|
||||
|
||||
// Update notifications
|
||||
if (conversation) {
|
||||
// Clear typing indicator
|
||||
const typingToken = `${editAttributes.fromId}.${editAttributes.fromDevice}`;
|
||||
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