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) { ...@@ -16,6 +16,15 @@ function computeAvatarSize (maxSize) {
return size < width ? size : width return size < width ? size : width
} }
function handleStatusChanged (status) {
if (status === Linphone.CallModel.CallStatusEnded) {
var fullscreen = incall._fullscreen
if (fullscreen) {
fullscreen.close()
}
}
}
function handleVideoRequested () { function handleVideoRequested () {
var call = incall.call var call = incall.call
var dialog var dialog
...@@ -58,7 +67,7 @@ function handleVideoRequested () { ...@@ -58,7 +67,7 @@ function handleVideoRequested () {
}) })
} }
function showFullScreen () { function showFullscreen () {
if (incall._fullscreen) { if (incall._fullscreen) {
return return
} }
......
...@@ -37,6 +37,7 @@ Rectangle { ...@@ -37,6 +37,7 @@ Rectangle {
Connections { Connections {
target: call target: call
onStatusChanged: Logic.handleStatusChanged (status)
onVideoRequested: Logic.handleVideoRequested() 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