mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
android, desktop: checking for camera in calls and handle uninitialized call (#4997)
* android, desktop: checking for camera in calls and handle uninitialized call * explanation for situation without permission * reorder * reorder * strings * font --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
committed by
GitHub
parent
35fc0544a0
commit
54b40a5838
+8
@@ -105,6 +105,14 @@ actual fun ActiveCallView() {
|
||||
else -> {}
|
||||
}
|
||||
is WCallResponse.Error -> {
|
||||
when (apiMsg.command) {
|
||||
is WCallCommand.Capabilities -> chatModel.callCommand.add(WCallCommand.Permission(
|
||||
title = generalGetString(MR.strings.call_desktop_permission_denied_title),
|
||||
chrome = generalGetString(MR.strings.call_desktop_permission_denied_chrome),
|
||||
safari = generalGetString(MR.strings.call_desktop_permission_denied_safari)
|
||||
))
|
||||
else -> {}
|
||||
}
|
||||
Log.e(TAG, "ActiveCallView: command error ${r.message}")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user