fix(master): Fixes prop hash reset due to missing property in the response
This commit is contained in:
+4
-2
@@ -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