diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 0ca11d7..bddd210 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -773,8 +773,10 @@ export const makeChatsSocket = (config: SocketConfig) => { let props: { [_: string]: string } = {} if(propsNode) { - authState.creds.lastPropHash = propsNode?.attrs?.hash - ev.emit('creds.update', authState.creds) + if(propsNode.attrs?.hash) { // on some clients, the hash is returning as undefined + authState.creds.lastPropHash = propsNode?.attrs?.hash + ev.emit('creds.update', authState.creds) + } props = reduceBinaryNodeToDictionary(propsNode, 'prop') }