Use serverTimestamp for delivery receipts

This commit is contained in:
Fedor Indutny 2022-01-06 12:12:53 -08:00 committed by GitHub
parent b7c2e6d3e8
commit e98b281644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -1277,6 +1277,7 @@ export default class MessageReceiver
new DeliveryEvent( new DeliveryEvent(
{ {
timestamp: envelope.timestamp, timestamp: envelope.timestamp,
envelopeTimestamp: envelope.serverTimestamp,
source: envelope.source, source: envelope.source,
sourceUuid: envelope.sourceUuid, sourceUuid: envelope.sourceUuid,
sourceDevice: envelope.sourceDevice, sourceDevice: envelope.sourceDevice,

View file

@ -127,7 +127,7 @@ export class ConfirmableEvent extends Event {
export type DeliveryEventData = Readonly<{ export type DeliveryEventData = Readonly<{
timestamp: number; timestamp: number;
envelopeTimestamp?: number; envelopeTimestamp: number;
source?: string; source?: string;
sourceUuid?: string; sourceUuid?: string;
sourceDevice?: number; sourceDevice?: number;