mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 04:56:47 +00:00
Specify bounds for message timestamps
This commit is contained in:
1 parent
1fb6d23500
commit
60ab00ecc6
1 file changed
+10
-4
@@ -142,9 +142,12 @@ message IndividualRecipientMessageBundle {
|
||||
|
||||
/**
|
||||
* The time, in milliseconds since the epoch, at which this message was
|
||||
* originally sent from the perspective of the sender.
|
||||
* originally sent from the perspective of the sender. Note that the maximum
|
||||
* allowable timestamp for JavaScript clients is less than Long.MAX_VALUE; see
|
||||
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#the_epoch_timestamps_and_invalid_date
|
||||
* for additional details and discussion.
|
||||
*/
|
||||
uint64 timestamp = 1;
|
||||
uint64 timestamp = 1 [(require.range).min = 1, (require.range).max = 8640000000000000];
|
||||
|
||||
/**
|
||||
* A map of device IDs to individual messages. Generally, callers must include
|
||||
@@ -327,9 +330,12 @@ message MultiRecipientMessage {
|
||||
|
||||
/**
|
||||
* The time, in milliseconds since the epoch, at which this message was
|
||||
* originally sent from the perspective of the sender.
|
||||
* originally sent from the perspective of the sender. Note that the maximum
|
||||
* allowable timestamp for JavaScript clients is less than Long.MAX_VALUE; see
|
||||
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#the_epoch_timestamps_and_invalid_date
|
||||
* for additional details and discussion.
|
||||
*/
|
||||
uint64 timestamp = 1;
|
||||
uint64 timestamp = 1 [(require.range).min = 1, (require.range).max = 8640000000000000];
|
||||
|
||||
/**
|
||||
* The serialized multi-recipient message payload.
|
||||
|
||||
Reference in new issue
Block a user