Prevent starting a group call while already in call

This commit is contained in:
Sylvain Berfini 2025-02-07 15:44:17 +01:00
parent 30fc60c0ef
commit 7bf9eb8394

View file

@ -149,9 +149,9 @@ class StartCallViewModel
@UiThread
fun updateGroupCallButtonVisibility() {
coreContext.postOnCoreThread { core ->
val hideGroupCall = corePreferences.disableMeetings || !LinphoneUtils.isRemoteConferencingAvailable(
core
)
val hideGroupCall = corePreferences.disableMeetings ||
!LinphoneUtils.isRemoteConferencingAvailable(core) ||
core.callsNb > 0
hideGroupCallButton.postValue(hideGroupCall)
}
}