mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Dismiss a room's window when its flow finishes as there's no longer a reason for it to be alive.
This commit is contained in:
committed by
Stefan Ceriu
parent
ac5b61c973
commit
bb61db285b
@@ -174,6 +174,10 @@ class WindowManager: SecureWindowManagerProtocol {
|
||||
func lockOrientation(_ orientation: UIInterfaceOrientationMask) {
|
||||
appDelegate.orientationLock = orientation
|
||||
}
|
||||
|
||||
func closeAuxiliaryWindow(forType type: WindowManagerWindowType) {
|
||||
dismissWindowAction(value: type)
|
||||
}
|
||||
}
|
||||
|
||||
private class PassthroughWindow: UIWindow {
|
||||
|
||||
@@ -62,6 +62,9 @@ protocol WindowManagerProtocol: AnyObject, OrientationManagerProtocol {
|
||||
func showGlobalSearch()
|
||||
|
||||
func hideGlobalSearch()
|
||||
|
||||
/// Closes a previously opened window for the given type.
|
||||
func closeAuxiliaryWindow(forType type: WindowManagerWindowType)
|
||||
}
|
||||
|
||||
// sourcery: AutoMockable
|
||||
|
||||
Reference in New Issue
Block a user