Commit d59f1ddd authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent bd4b18d2
......@@ -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
}
......
......@@ -37,6 +37,7 @@ Rectangle {
Connections {
target: call
onStatusChanged: Logic.handleStatusChanged (status)
onVideoRequested: Logic.handleVideoRequested()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment