element-web/test/toasts
Timo 5c26d580d8
Fix widgets not being cleaned up correctly. (#12616)
* Fix widgets not being cleaned up correctly.

Widgets could persist forever because they were still sticky when we end the messaging.
Ending the messaging emits an event to which we connect ui changes that move the widget out of the screen. It does not end up in a pip view however.

So we need to make sure the widget is not persistend anymore when we call `stopMessagingByUid` so that any dom changes that remove the AppTile happen when the widget is not persistend anymore and let it destroy.

This PR also makes the role for `MatrixRTCSessionManager` more strict. We do ONLY use it in `Call.ts` and `CallStore`  so that we dont end up in reaces where we updated the ui based on the session manager but not in sync with the call and callstore changes.

Rename activeCalls to connectedCalls. Active call can also be understood as a call where there are active participants but the user itself is not connected. Especially with the `hasActiveCallSession` field of the useRoomCall hook which is tracking active (not necassarly connected sessions)

* rest of the renaming

* fix test to adapt to reduced session manager event usage.
2024-06-17 11:00:41 +00:00
..
__snapshots__ Revert "Implement new toast UI (#10467)" (#10740) 2023-04-28 14:56:26 +00:00
IncomingCallToast-test.tsx Fix widgets not being cleaned up correctly. (#12616) 2024-06-17 11:00:41 +00:00
IncomingLegacyCallToast-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
UnverifiedSessionToast-test.tsx Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00