From 116eed0c9b591ada3a892224b13fe55dd07422e7 Mon Sep 17 00:00:00 2001 From: isaacakakpo1 Date: Mon, 18 Nov 2024 09:36:01 +0100 Subject: [PATCH] - Set Initial callState for Call --- telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/Call.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/Call.kt b/telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/Call.kt index 07f81666..71e5993b 100644 --- a/telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/Call.kt +++ b/telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/Call.kt @@ -77,7 +77,7 @@ data class Call( private val loudSpeakerLiveData = MutableLiveData(false) init { - callStateLiveData.postValue(CallState.CONNECTING) + updateCallState(CallState.CONNECTING) // Ensure that loudSpeakerLiveData is correct based on possible options provided from client. loudSpeakerLiveData.postValue(audioManager.isSpeakerphoneOn)