Fixed answer button showing camera for incoming call with video if auto accept video setting is disabled
This commit is contained in:
parent
c8ebeaa66d
commit
804bf6dc64
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class IncomingCallViewModel(call: Call) : CallViewModel(call) {
|
||||||
coreContext.core.addListener(listener)
|
coreContext.core.addListener(listener)
|
||||||
|
|
||||||
screenLocked.value = false
|
screenLocked.value = false
|
||||||
inviteWithVideo.value = call.remoteParams?.videoEnabled()
|
inviteWithVideo.value = call.remoteParams?.videoEnabled() == true && coreContext.core.videoActivationPolicy.automaticallyAccept
|
||||||
earlyMediaVideoEnabled.value = corePreferences.acceptEarlyMedia &&
|
earlyMediaVideoEnabled.value = corePreferences.acceptEarlyMedia &&
|
||||||
call.state == Call.State.IncomingEarlyMedia &&
|
call.state == Call.State.IncomingEarlyMedia &&
|
||||||
call.currentParams.videoEnabled()
|
call.currentParams.videoEnabled()
|
||||||
|
|
Loading…
Reference in a new issue