fix(Incall): do not ask for video if video is not supported

This commit is contained in:
Ronan Abhamon 2018-04-16 14:14:14 +02:00
parent 4bcb9e88da
commit 36d55d2fb8

View file

@ -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)