element-x-ada/features/call/impl/src
Jorge Martin Espinosa 651263111e
Make sure declining a call stops observing the ringing call state (#5563)
* Add shared `removeCurrentCall` function to `DefaultActiveCallManager`

This centralises the shared call cancellation logic

* Add regression test for the issue

* Make sure the existing iterations of `flatMapLatest` in `observeRingingCall` get cancelled when the active call is null or not ringing anymore by passing null values, then filtering them out

Previously these kept running even if the `activeCall` was no longer valid

* Move the `timedOutCallJob` cancellation inside `removeCurrentCall` too
2025-10-21 11:26:13 +02:00
..
main Make sure declining a call stops observing the ringing call state (#5563) 2025-10-21 11:26:13 +02:00
test/kotlin/io/element/android/features/call Make sure declining a call stops observing the ringing call state (#5563) 2025-10-21 11:26:13 +02:00