mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: send unavailable if markOnlineOnConnect=false
This commit is contained in:
@@ -612,9 +612,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
fetchProps(),
|
fetchProps(),
|
||||||
fetchBlocklist(),
|
fetchBlocklist(),
|
||||||
fetchPrivacySettings(),
|
fetchPrivacySettings(),
|
||||||
markOnlineOnConnect
|
sendPresenceUpdate(markOnlineOnConnect ? 'available' : 'unavailable')
|
||||||
? sendPresenceUpdate('available')
|
|
||||||
: undefined
|
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user