fix: mobile app state key + message events

This commit is contained in:
SamuelScheit
2023-05-14 17:45:19 +02:00
parent 07562c2204
commit a6640bb0f6

View File

@@ -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
}