Set Active call immediately when not in widget mode.
This commit is contained in:
parent
35d94bbda7
commit
a9091c6ea6
1 changed files with 3 additions and 2 deletions
|
|
@ -103,8 +103,9 @@ class ElementCallActivity :
|
||||||
ElementThemeApp(appPreferencesStore) {
|
ElementThemeApp(appPreferencesStore) {
|
||||||
val state = presenter.present()
|
val state = presenter.present()
|
||||||
eventSink = state.eventSink
|
eventSink = state.eventSink
|
||||||
LaunchedEffect(state.isCallActive) {
|
LaunchedEffect(state.isCallActive, state.isInWidgetMode) {
|
||||||
if (state.isCallActive) {
|
// Note when not in WidgetMode, isCallActive will never be true, so consider the call is active
|
||||||
|
if (state.isCallActive || !state.isInWidgetMode) {
|
||||||
setCallIsActive()
|
setCallIsActive()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue