mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: bad request on sending messages in some cases
Issue source found out by @jackcokk
This commit is contained in:
@@ -178,9 +178,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
],
|
||||
}
|
||||
const result = await query(iq)
|
||||
const { device } = jidDecode(authState.creds.me!.id)
|
||||
|
||||
const extracted = extractDeviceJids(result, device, ignoreZeroDevices)
|
||||
const extracted = extractDeviceJids(result, authState.creds.me!.id, ignoreZeroDevices)
|
||||
const deviceMap: { [_: string]: JidWithDevice[] } = {}
|
||||
|
||||
for(const item of extracted) {
|
||||
|
||||
Reference in New Issue
Block a user