mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix(master): Fixes prop hash reset due to missing property in the response
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user