diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-12-01 05:12:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 10:12:00 +0000 |
commit | 579c6be5f6eabcb05061730ea4d04d000e105076 (patch) | |
tree | 8c1640b4006ef49cca31698668cec1ee1779d55d /synapse/handlers/message.py | |
parent | Upgrade poetry-core range to fix issue with .so file (#16702) (diff) | |
download | synapse-579c6be5f6eabcb05061730ea4d04d000e105076.tar.xz |
Drop unused tables & unneeded access token ID for events. (#16522)
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 811a41f161..25dd96416a 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -693,13 +693,9 @@ class EventCreationHandler: 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 |