Use serverTimestamp for delivery receipts
This commit is contained in:
parent
b7c2e6d3e8
commit
e98b281644
2 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue