Use serverTimestamp for delivery receipts

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-01-06 13:05:19 -08:00 committed by GitHub
parent e3f27db349
commit 2a2f8ebf55
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(
{
timestamp: envelope.timestamp,
envelopeTimestamp: envelope.serverTimestamp,
source: envelope.source,
sourceUuid: envelope.sourceUuid,
sourceDevice: envelope.sourceDevice,

View File

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