fix: cleanMessage for reaction messages

This commit is contained in:
Adhiraj Singh
2022-05-23 12:46:34 +05:30
parent ebec02908c
commit 4ea2c33cfa
2 changed files with 7 additions and 6 deletions

View File

@@ -505,7 +505,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
await sendReceipt(msg.key.remoteJid!, participant, [msg.key.id!], type)
}
cleanMessage(msg)
cleanMessage(msg, authState.creds.me!.id)
ev.emit('messages.upsert', { messages: [msg], type: stanza.attrs.offline ? 'append' : 'notify' })
}
)