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(),
|
||||
fetchBlocklist(),
|
||||
fetchPrivacySettings(),
|
||||
markOnlineOnConnect
|
||||
? sendPresenceUpdate('available')
|
||||
: undefined
|
||||
sendPresenceUpdate(markOnlineOnConnect ? 'available' : 'unavailable')
|
||||
])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user