mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix broken iPhone room push animation after disabling root fading for the iPad
This commit is contained in:
@@ -15,8 +15,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Combine
|
import Combine
|
||||||
import Foundation
|
|
||||||
import SwiftState
|
import SwiftState
|
||||||
|
import SwiftUI
|
||||||
import UserNotifications
|
import UserNotifications
|
||||||
|
|
||||||
enum RoomFlowCoordinatorAction: Equatable {
|
enum RoomFlowCoordinatorAction: Equatable {
|
||||||
@@ -530,7 +530,8 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
|
|||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
if !isChildFlow {
|
if !isChildFlow {
|
||||||
navigationStackCoordinator.setRootCoordinator(coordinator, animated: false) { [weak self] in
|
let animated = UIDevice.current.userInterfaceIdiom == .phone ? animated : false
|
||||||
|
navigationStackCoordinator.setRootCoordinator(coordinator, animated: animated) { [weak self] in
|
||||||
self?.stateMachine.tryEvent(.dismissFlow)
|
self?.stateMachine.tryEvent(.dismissFlow)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user