We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af906ce commit 2c2f8bdCopy full SHA for 2c2f8bd
vector/src/main/java/im/vector/app/features/call/VectorCallActivity.kt
@@ -253,7 +253,7 @@ class VectorCallActivity :
253
// already been answered before starting the MicrophoneAccessService
254
// https://github.com/element-hq/element-android/issues/8964
255
val callState = it.callState.invoke()
256
- if (callState !is CallState.LocalRinging && callState !is CallState.Ended) {
+ if (callState !is CallState.LocalRinging && callState !is CallState.Ended && callState != null) {
257
Timber.tag(loggerTag.value).v("Starting microphone foreground service")
258
val intent = Intent(this, MicrophoneAccessService::class.java)
259
ContextCompat.startForegroundService(this, intent)
0 commit comments