Skip to content

Commit

Permalink
fix: Fixed contacts.update when received changed picture event (Whisk…
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta authored Aug 19, 2024
1 parent 0011d61 commit c02b772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Socket/messages-recv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}])

Expand Down

0 comments on commit c02b772

Please sign in to comment.