Fix duplicate toasts appearing for the same call if two events appear. (#31693)

* fix export

* Don't allow duplicate toasts.

* fix imports

* fix

* fix rel_type to be m.reference in tests

* Fix case where redactions were not longer checked.

* Ensure toastkey is calculated by the room call_id

* Ensure we fetch the call event if it does not exist locally.

* cleanup / reduce code complexity

* Add docs

* Add comment

* merge condition
This commit is contained in:
Will Hunt
2026-01-23 10:38:39 +00:00
committed by GitHub
parent 88562127d7
commit c135c16824
6 changed files with 269 additions and 118 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ async function sendRTCState(bot: Bot, roomId: string, notification?: "ring" | "n
},
"m.relates_to": {
event_id: resp.event_id,
rel_type: "org.matrix.msc4075.rtc.notification.parent",
rel_type: "m.reference",
},
"m.call.intent": intent,
"notification_type": notification,