Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Correct some logic that was accidentally changed
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jan 9, 2023
1 parent 6a4b75a commit d4d322c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/crypto/keyring.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ async def _inner_fetch_key_request(
# If we already have a result for the given key ID, we keep the
# one with the highest `valid_until_ts`.
existing_key = found_keys.get(key_id)
if existing_key and existing_key.valid_until_ts > key.valid_until_ts:
if existing_key and existing_key.valid_until_ts >= key.valid_until_ts:
continue

# Check if this key's expiry timestamp is valid for the verify request.
Expand Down

0 comments on commit d4d322c

Please sign in to comment.