perf(reconnect): eliminate race condition between connection:open and offline message delivery

perf(reconnect): eliminate race condition between connection:open and offline message delivery
This commit is contained in:
Renato Alcara
2026-02-26 18:54:19 -03:00
committed by GitHub
parent 8cdea36b98
commit 9c1adfd05f
2 changed files with 24 additions and 16 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
import Long from 'long'
import type { Readable } from 'stream'
import type { URL } from 'url'
import { proto } from '../../WAProto/index.js'
@@ -30,7 +29,7 @@ export type WAMessageKey = proto.IMessageKey & {
export type PlaceholderMessageData = {
key: WAMessageKey
pushName?: string | null
messageTimestamp?: number | Long | null
messageTimestamp?: WAMessage['messageTimestamp']
participant?: string | null
participantAlt?: string | null
}