7428528d7b
Ports the upstream reconnection-sync-skip test from Baileys PR #2350 and adapts it to cover InfiniteAPI's dual-signal reconnect detection in chats.ts: 1. accountSyncCounter > 0 (a previous full sync completed) 2. socketSkippedOfflineBuffer (forwarded from socket.ts when hadStaleRoutingInfo is true, e.g. routingInfo discarded on start) Both are required because they cover different reconnect scenarios and the absence of the second branch causes a buffer mismatch where socket.ts skips the offline buffer while chats.ts still waits in AwaitingInitialSync — stalling live messages for up to 4 seconds. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>