mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fixing a crash that happened when leaving the room through the details screen (#2160)
This commit is contained in:
@@ -410,10 +410,9 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func dismissRoom(animated: Bool) {
|
private func dismissRoom(animated: Bool) {
|
||||||
// Setting the detail coordinator to nil afirst allows the dismiss to work properly
|
// DON'T CHANGE THE ORDER IN WHICH POP AND SET ARE DONE, IT CAN CAUSE A CRASH
|
||||||
// if followed immediately by another navigation on iPhone
|
|
||||||
navigationSplitCoordinator.setDetailCoordinator(nil, animated: animated)
|
|
||||||
navigationStackCoordinator.popToRoot(animated: false)
|
navigationStackCoordinator.popToRoot(animated: false)
|
||||||
|
navigationSplitCoordinator.setDetailCoordinator(nil, animated: animated)
|
||||||
roomProxy = nil
|
roomProxy = nil
|
||||||
timelineController = nil
|
timelineController = nil
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Fixed a crash that happened when leaving a room through the details screen.
|
||||||
Reference in New Issue
Block a user