Commit 525f0fe7 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk

fix: reset device orientation after finished call

Change-Id: I974a02b3038b1b67569e54d3e61a640b301fad7c
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 124fdd8b
...@@ -94,6 +94,9 @@ class CallViewModel: Stateable, ViewModel { ...@@ -94,6 +94,9 @@ class CallViewModel: Stateable, ViewModel {
.map({[weak self] call in .map({[weak self] call in
return call.state == .over || call.state == .failure return call.state == .over || call.state == .failure
}).map({ hide in }).map({ hide in
if hide {
self.videoService.setCameraOrientation(orientation: .portrait)
}
return hide return hide
}) })
}() }()
......
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