Skip to content
Snippets Groups Projects
Commit 92e5e984 authored by Alexander Lussier-Cullen's avatar Alexander Lussier-Cullen Committed by Adrien Béraud
Browse files

Call: fix mute button state in solo swarm

GitLab: #1407
Change-Id: I09821cd806e3c7fd507be124c62a37e7fe463ade
parent 27d9bf9c
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,6 @@ class CallFragment : BaseSupportFragment<CallPresenter, CallView>(), CallView,
lateinit var mDeviceRuntimeService: DeviceRuntimeService
private val mCompositeDisposable = CompositeDisposable()
private var bottomSheetParams: BottomSheetBehavior<View>? = null
private var isMyMicMuted: Boolean = false
private var pluginsAdapter: PluginsAdapter? = null
private val cameraPermissionLauncher = registerForActivityResult(ActivityResultContracts.RequestPermission()) { isGranted ->
......@@ -808,7 +807,6 @@ class CallFragment : BaseSupportFragment<CallPresenter, CallView>(), CallView,
mConferenceMode = participantInfo.size > 1
if (participantInfo.isNotEmpty()) {
isMyMicMuted = participantInfo[0].audioLocalMuted
val username = if (participantInfo.size > 1)
"Conference with ${participantInfo.size} people"
else participantInfo[0].contact.displayName
......
......@@ -241,7 +241,21 @@ class CallPresenter @Inject constructor(
* */
fun muteMicrophoneToggled(checked: Boolean) {
val conference = mConference ?: return
mCallService.setLocalMediaMuted(conference.accountId, conference.id, CallService.MEDIA_TYPE_AUDIO, checked)
val callId = conference.call?.daemonIdString
if(callId != null) {
mCallService.setLocalMediaMuted(
conference.accountId,
callId,
CallService.MEDIA_TYPE_AUDIO,
checked
)
}
mCallService.setLocalMediaMuted(
conference.accountId,
conference.id,
CallService.MEDIA_TYPE_AUDIO,
checked
)
}
fun switchVideoInputClick() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment