Fixes #1140 - Dismiss all modals when presenting a room

This commit is contained in:
Stefan Ceriu
2023-08-10 09:55:10 +03:00
committed by Stefan Ceriu
parent 8a69ca1ce0
commit a73502a146
12 changed files with 56 additions and 5 deletions
@@ -89,6 +89,11 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
actionsSubject.eraseToAnyPublisher()
}
func stop() {
// Work around QLPreviewController dismissal issues, see the InteractiveQuickLookModifier.
state.bindings.mediaPreviewItem = nil
}
override func process(viewAction: RoomScreenViewAction) {
switch viewAction {
case .displayRoomDetails: