Fix crash on message tab-iPad only (#33)

This commit is contained in:
Sean Goldin 2023-01-06 10:09:52 -06:00 committed by GitHub
parent f922ba344d
commit 03afa1f978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = []