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

3 commits

Author SHA1 Message Date
ph
252ae04c0c 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
ccffbd485c chore: name news fragment after pull request 2219 2026-09-11 07:28:38 +00:00
ph
bc8208d097 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