feat(ui/views/App/Calls/Incall): hide fullscreen window when call is ended

This commit is contained in:
Ronan Abhamon 2017-03-17 14:51:19 +01:00
parent bd4b18d272
commit d59f1ddde1
2 changed files with 11 additions and 1 deletions

View file

@ -16,6 +16,15 @@ function computeAvatarSize (maxSize) {
return size < width ? size : width
}
function handleStatusChanged (status) {
if (status === Linphone.CallModel.CallStatusEnded) {
var fullscreen = incall._fullscreen
if (fullscreen) {
fullscreen.close()
}
}
}
function handleVideoRequested () {
var call = incall.call
var dialog
@ -58,7 +67,7 @@ function handleVideoRequested () {
})
}
function showFullScreen () {
function showFullscreen () {
if (incall._fullscreen) {
return
}

View file

@ -37,6 +37,7 @@ Rectangle {
Connections {
target: call
onStatusChanged: Logic.handleStatusChanged (status)
onVideoRequested: Logic.handleVideoRequested()
}