Fixed badge briefly visible when terminating conference

This commit is contained in:
Sylvain Berfini 2022-09-06 13:33:52 +02:00
parent e468573551
commit 36286b0259

View file

@ -314,6 +314,7 @@ class CallsViewModel : ViewModel() {
private fun updateInactiveCallsCount() { private fun updateInactiveCallsCount() {
// TODO: handle local conference // TODO: handle local conference
inactiveCallsCount.value = coreContext.core.callsNb - 1 val callsNb = coreContext.core.callsNb
inactiveCallsCount.value = if (callsNb > 0) callsNb - 1 else 0
} }
} }