fix(federation): unique txn ids so typing EDUs re-apply #2219

Closed
Ghost wants to merge 3 commits from (deleted):fix/federation-typing-txn-id into main

2026-09-11

ph
fix(federation): drop needless borrows for unique_txn_id
All checks were successful
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 9s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m36s
Checks / Prek / Check changed files (pull_request) Successful in 7s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 10m9s
Clippy needless_borrows_for_generic_args: txn_hash already implements
the AsRef bound.
2026-09-11 07:28:38 +00:00
ph
fix(federation): unique txn ids so typing EDUs re-apply
Outgoing federation/appservice transaction IDs were a hash of PDU/EDU
content. m.typing EDUs for the same user/room/boolean are identical, so
the remote caches the txn id and never re-applies later typing notices.
Fold origin_server_ts into the id; PDUs stay idempotent via event_id.
2026-09-11 07:28:38 +00:00