Skip to content

Commit

Permalink
fix messages.upsert not triggering because buffer not flushed
Browse files Browse the repository at this point in the history
  • Loading branch information
kbiits committed Jun 10, 2023
1 parent 226d9af commit 480379b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Socket/chats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
if(!authState.creds?.myAppStateKeyId && !config.mobile) {
ev.buffer()
needToFlushWithAppStateSync = true
ev.flush()
}
}
})
Expand Down

0 comments on commit 480379b

Please sign in to comment.