diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-11-28 09:40:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 14:40:17 +0000 |
commit | d748bbc8f8268d2e8457374d529adafb20b9f5f4 (patch) | |
tree | a7705564d3ce1bcbe2eaf59167d4955640102191 /synapse/handlers | |
parent | Remove option to skip locking of tables during emulated upserts (#14469) (diff) | |
download | synapse-d748bbc8f8268d2e8457374d529adafb20b9f5f4.tar.xz |
Include thread information when sending receipts over federation. (#14466)
Include the thread_id field when sending read receipts over federation. This might result in the same user having multiple read receipts per-room, meaning multiple EDUs must be sent to encapsulate those receipts. This restructures the PerDestinationQueue APIs to support multiple receipt EDUs, queue_read_receipt now becomes linear time in the number of queued threaded receipts in the room for the given user, it is expected this is a small number since receipt EDUs are sent as filler in transactions.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/receipts.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/handlers/receipts.py b/synapse/handlers/receipts.py index ac01582442..6a4fed1156 100644 --- a/synapse/handlers/receipts.py +++ b/synapse/handlers/receipts.py @@ -92,7 +92,6 @@ class ReceiptsHandler: continue # Check if these receipts apply to a thread. - thread_id = None data = user_values.get("data", {}) thread_id = data.get("thread_id") # If the thread ID is invalid, consider it missing. |