Handle Envelope.serverGuidBinary

This commit is contained in:
Fedor Indutny
2026-02-13 08:15:18 -08:00
committed by GitHub
parent 5655b0d502
commit cd29c96a89

View File

@@ -453,7 +453,12 @@ export default class MessageReceiver
),
timestamp: decoded.clientTimestamp?.toNumber() ?? 0,
content,
serverGuid: decoded.serverGuid ?? getGuid(),
serverGuid:
(Bytes.isNotEmpty(decoded.serverGuidBinary)
? bytesToUuid(decoded.serverGuidBinary)
: undefined) ??
decoded.serverGuid ??
getGuid(),
serverTimestamp,
urgent: isBoolean(decoded.urgent) ? decoded.urgent : true,
story: decoded.story ?? false,