Use envelope.receivedAtDate when saving items to the cache
This commit is contained in:
parent
2db0a40e7b
commit
f3b68677b3
1 changed files with 4 additions and 1 deletions
|
@ -1113,11 +1113,14 @@ export default class MessageReceiver
|
||||||
id,
|
id,
|
||||||
version: 2,
|
version: 2,
|
||||||
|
|
||||||
|
// This field is only used for aging items out of the cache. The original
|
||||||
|
// envelope's timestamp will be used when retrying this item.
|
||||||
|
timestamp: envelope.receivedAtDate,
|
||||||
|
|
||||||
attempts: 0,
|
attempts: 0,
|
||||||
envelope: Bytes.toBase64(plaintext),
|
envelope: Bytes.toBase64(plaintext),
|
||||||
messageAgeSec: envelope.messageAgeSec,
|
messageAgeSec: envelope.messageAgeSec,
|
||||||
receivedAtCounter: envelope.receivedAtCounter,
|
receivedAtCounter: envelope.receivedAtCounter,
|
||||||
timestamp: envelope.timestamp,
|
|
||||||
urgent: envelope.urgent,
|
urgent: envelope.urgent,
|
||||||
story: envelope.story,
|
story: envelope.story,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue