mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fix pfp change notification (#323)
* Crash if chat is already deleted * Crash if chat is already deleted (#321) (#322) * Update messages-recv.ts * Update make-in-memory-store.ts * Update messages-recv.ts * Update make-in-memory-store.ts * Fix store errors * Fix hash issue * Fix eslint * Update messages-recv.ts * Update messages-recv.ts * ESLint final * no more eslint errors!
This commit is contained in:
@@ -378,8 +378,8 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
const delPicture = getBinaryNodeChild(node, 'delete')
|
||||
|
||||
ev.emit('contacts.update', [{
|
||||
id: from,
|
||||
imgUrl: setPicture ? 'changed' : null
|
||||
id: jidNormalizedUser(node?.attrs?.jid) || ((setPicture || delPicture)?.attrs?.hash) || '',
|
||||
imgUrl: setPicture ? 'changed' : 'removed'
|
||||
}])
|
||||
|
||||
if(isJidGroup(from)) {
|
||||
|
||||
Reference in New Issue
Block a user