Call serverTimestamp.toNumber() for unprocessed

This commit is contained in:
Fedor Indutny 2021-04-28 13:21:11 -07:00 committed by GitHub
parent 808c7dfb2d
commit 4978fae69c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -611,8 +611,9 @@ class MessageReceiverInner extends EventTarget {
envelope.source = envelope.source || item.source;
envelope.sourceUuid = envelope.sourceUuid || item.sourceUuid;
envelope.sourceDevice = envelope.sourceDevice || item.sourceDevice;
envelope.serverTimestamp =
envelope.serverTimestamp || item.serverTimestamp;
envelope.serverTimestamp = envelope.serverTimestamp
? envelope.serverTimestamp.toNumber()
: item.serverTimestamp;
const { decrypted } = item;
if (decrypted) {