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-08-30 06:10:56 -0400
committerGitHub <noreply@github.com>2023-08-30 11:10:56 +0100
commitebd8374fb5f10f84fc818058100ec7ae284835b3 (patch)
tree573bbc6ebae3af171e3b95007802d5b9618e8047 /synapse/handlers/message.py
parentDescribe which rate limiter was hit in logs (#16135) (diff)
downloadsynapse-ebd8374fb5f10f84fc818058100ec7ae284835b3.tar.xz
Stop writing to the event_txn_id table (#16175)
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 187c3e6cc0..d6be18cdef 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -908,19 +908,6 @@ class EventCreationHandler:
             if existing_event_id:
                 return existing_event_id
 
-        # Some requsters don't have device IDs (appservice, guests, and access
-        # tokens minted with the admin API), fallback to checking the access token
-        # ID, which should be close enough.
-        if requester.access_token_id:
-            existing_event_id = (
-                await self.store.get_event_id_from_transaction_id_and_token_id(
-                    room_id,
-                    requester.user.to_string(),
-                    requester.access_token_id,
-                    txn_id,
-                )
-            )
-
         return existing_event_id
 
     async def get_event_from_transaction(