mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: Fixed contacts.update when received changed picture event (#979)
This commit is contained in:
@@ -414,7 +414,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
const delPicture = getBinaryNodeChild(node, 'delete')
|
||||
|
||||
ev.emit('contacts.update', [{
|
||||
id: jidNormalizedUser(node?.attrs?.jid) || ((setPicture || delPicture)?.attrs?.hash) || '',
|
||||
id: jidNormalizedUser(node?.attrs?.from) || ((setPicture || delPicture)?.attrs?.hash) || '',
|
||||
imgUrl: setPicture ? 'changed' : 'removed'
|
||||
}])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user