From d40cb72e709ce834af42b7b17ba6faa08fbc7e05 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 6 Sep 2023 15:02:17 -0400 Subject: [PATCH] Stop including the access_token_id in new events. --- synapse/handlers/message.py | 8 ++------ .../01_drop_old_tables.sql => 82/03_drop_old_tables.sql} | 0 2 files changed, 2 insertions(+), 6 deletions(-) rename synapse/storage/schema/main/delta/{81/01_drop_old_tables.sql => 82/03_drop_old_tables.sql} (100%) diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 44dbbf81dd48..d0d4626ed6d2 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -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 diff --git a/synapse/storage/schema/main/delta/81/01_drop_old_tables.sql b/synapse/storage/schema/main/delta/82/03_drop_old_tables.sql similarity index 100% rename from synapse/storage/schema/main/delta/81/01_drop_old_tables.sql rename to synapse/storage/schema/main/delta/82/03_drop_old_tables.sql