mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: mobile app state key + message events
This commit is contained in:
@@ -915,7 +915,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
// if we don't have the app state key
|
// if we don't have the app state key
|
||||||
// we keep buffering events until we finally have
|
// we keep buffering events until we finally have
|
||||||
// the key and can sync the messages
|
// the key and can sync the messages
|
||||||
if(!authState.creds?.myAppStateKeyId) {
|
if(!authState.creds?.myAppStateKeyId && !config.mobile) {
|
||||||
ev.buffer()
|
ev.buffer()
|
||||||
needToFlushWithAppStateSync = true
|
needToFlushWithAppStateSync = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user