mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-02 20:29:23 +00:00
fix(Incall): do not ask for video if video is not supported
This commit is contained in:
parent
4bcb9e88da
commit
36d55d2fb8
1 changed files with 2 additions and 3 deletions
|
|
@ -52,13 +52,12 @@ function handleStatusChanged (status) {
|
|||
}
|
||||
|
||||
function handleVideoRequested () {
|
||||
if (window.virtualWindowVisible) {
|
||||
var call = incall.call
|
||||
if (window.virtualWindowVisible || !Linphone.SettingsModel.videoSupported) {
|
||||
call.rejectVideoRequest()
|
||||
return
|
||||
}
|
||||
|
||||
var call = incall.call
|
||||
|
||||
// Close dialog after 10s.
|
||||
var timeout = Utils.setTimeout(incall, 10000, function () {
|
||||
call.statusChanged.disconnect(endedHandler)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue