mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Provide MutableStateFlow in the constructor of the fake class.
This commit is contained in:
+2
-8
@@ -12,11 +12,5 @@ import io.element.android.features.call.api.CurrentCallService
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
|
||||
class FakeCurrentCallService(
|
||||
initialValue: CurrentCall = CurrentCall.None,
|
||||
) : CurrentCallService {
|
||||
override val currentCall = MutableStateFlow(initialValue)
|
||||
|
||||
fun setCurrentCall(value: CurrentCall) {
|
||||
currentCall.value = value
|
||||
}
|
||||
}
|
||||
override val currentCall: MutableStateFlow<CurrentCall> = MutableStateFlow(CurrentCall.None),
|
||||
) : CurrentCallService
|
||||
|
||||
Reference in New Issue
Block a user