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