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

Commit

Permalink
Stop including the access_token_id in new events.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Sep 12, 2023
1 parent a1630fe commit 23e49a3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions synapse/handlers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,9 @@ async def create_event(
if require_consent and not is_exempt:
await self.assert_accepted_privacy_policy(requester)

# Save the access token ID, the device ID and the transaction ID in the event
# internal metadata. This is useful to determine if we should echo the
# transaction_id in events.
# Save the the device ID and the transaction ID in the event internal metadata.
# This is useful to determine if we should echo the transaction_id in events.
# See `synapse.events.utils.EventClientSerializer.serialize_event`
if requester.access_token_id is not None:
builder.internal_metadata.token_id = requester.access_token_id

if requester.device_id is not None:
builder.internal_metadata.device_id = requester.device_id

Expand Down

0 comments on commit 23e49a3

Please sign in to comment.