diff --git a/IceCubesApp/App/Tabs/MessagesTab.swift b/IceCubesApp/App/Tabs/MessagesTab.swift index e4325282..dc17d44f 100644 --- a/IceCubesApp/App/Tabs/MessagesTab.swift +++ b/IceCubesApp/App/Tabs/MessagesTab.swift @@ -25,8 +25,8 @@ struct MessagesTab: View { } } .id(currentAccount.account?.id) + .environmentObject(routeurPath) } - .environmentObject(routeurPath) .onChange(of: $popToRootTab.wrappedValue) { popToRootTab in if popToRootTab == .messages { routeurPath.path = []