From 72407e30255a9492706d6da1aee39a274dbc1cfa Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Mon, 6 May 2024 18:19:50 +0300 Subject: [PATCH] linting --- src/Socket/chats.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 00f33eb..105a25b 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -726,7 +726,7 @@ export const makeChatsSocket = (config: SocketConfig) => { }, content: [ { tag: 'props', attrs: { - protocol: 2, + protocol: '2', hash: authState?.creds?.lastPropHash || "" } } ] @@ -737,7 +737,7 @@ export const makeChatsSocket = (config: SocketConfig) => { let props: { [_: string]: string } = {} if(propsNode) { - authState?.creds?.lastPropHash = propsNode?.attrs?.hash + authState.creds.lastPropHash = propsNode?.attrs?.hash ev.emit('creds.update', authState.creds) props = reduceBinaryNodeToDictionary(propsNode, 'prop') }