From a6640bb0f651a194cfc1e847b7e8eff47f51777d Mon Sep 17 00:00:00 2001 From: SamuelScheit Date: Sun, 14 May 2023 17:45:19 +0200 Subject: [PATCH] fix: mobile app state key + message events --- src/Socket/chats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index ee40c33..ce3e87f 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -915,7 +915,7 @@ export const makeChatsSocket = (config: SocketConfig) => { // if we don't have the app state key // we keep buffering events until we finally have // the key and can sync the messages - if(!authState.creds?.myAppStateKeyId) { + if(!authState.creds?.myAppStateKeyId && !config.mobile) { ev.buffer() needToFlushWithAppStateSync = true }