summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-10-06 08:29:33 -0400
committerGitHub <noreply@github.com>2023-10-06 08:29:33 -0400
commitcabd57746004fe2dacc11aa8d373854a3d25e306 (patch)
tree819a71da1ac4acb023b42a56f2bac74e2be6cf57 /synapse/handlers/message.py
parentStop sending incorrect knock_state_events. (#16403) (diff)
downloadsynapse-cabd57746004fe2dacc11aa8d373854a3d25e306.tar.xz
Drop unused tables & unneeded access token ID for events. (#16268)
Drop the event_txn_id table and the tables related to MSC2716,
which is no longer supported in Synapse.
Diffstat (limited to '')
-rw-r--r--synapse/handlers/message.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py

index 44dbbf81dd..d0d4626ed6 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