Skip to content

Commit

Permalink
Merge pull request #1055 from progval/valid_until_ts
Browse files Browse the repository at this point in the history
Clarify that valid_until_ts is in milliseconds, like other timestamps used in Matrix
  • Loading branch information
uhoreg committed May 17, 2022
2 parents 573dbb3 + 3458907 commit 58f960e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelogs/server_server/newsfragments/1055.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that valid_until_ts is in milliseconds, like other timestamps used in Matrix
7 changes: 4 additions & 3 deletions data/api/server-server/definitions/keys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ properties:
type: integer
format: int64
description: |-
POSIX timestamp when the list of valid keys should be refreshed. This field MUST
be ignored in room versions 1, 2, 3, and 4. Keys used beyond this timestamp MUST
be considered invalid, depending on the [room version specification](/rooms).
POSIX timestamp in milliseconds when the list of valid keys should be refreshed.
This field MUST be ignored in room versions 1, 2, 3, and 4. Keys used beyond this
timestamp MUST be considered invalid, depending on the
[room version specification](/rooms).
Servers MUST use the lesser of this field and 7 days into the future when
determining if a key is valid. This is to avoid a situation where an attacker
Expand Down

0 comments on commit 58f960e

Please sign in to comment.