Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/Socket/chats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@
// collection is done with sync
collectionsToHandle.delete(name)
}
} catch (error: any) {

Check warning on line 603 in src/Socket/chats.ts

View workflow job for this annotation

GitHub Actions / check-lint

Unexpected any. Specify a different type
// if retry attempts overshoot
// or key not found
const isIrrecoverableError =
Expand Down Expand Up @@ -852,22 +852,21 @@
}
}

/** sending non-abt props may fix QR scan fail if server expects */
/** fetch AB props */
const fetchProps = async () => {
//TODO: implement both protocol 1 and protocol 2 prop fetching, specially for abKey for WM
const resultNode = await query({
tag: 'iq',
attrs: {
to: S_WHATSAPP_NET,
xmlns: 'w',
xmlns: 'abt',
type: 'get'
},
content: [
{
tag: 'props',
attrs: {
protocol: '2',
hash: authState?.creds?.lastPropHash || ''
protocol: '1',
...(authState?.creds?.lastPropHash ? { hash: authState.creds.lastPropHash } : {})
}
}
]
Expand Down
Loading