mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 02:01:02 +00:00
Fix envObject for iPad
This commit is contained in:
parent
c9c0bda69e
commit
b30610538f
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,6 @@ struct MessagesTab: View {
|
|||
}
|
||||
}
|
||||
.id(currentAccount.account?.id)
|
||||
.environmentObject(routeurPath)
|
||||
}
|
||||
.onChange(of: $popToRootTab.wrappedValue) { popToRootTab in
|
||||
if popToRootTab == .messages {
|
||||
|
@ -39,5 +38,6 @@ struct MessagesTab: View {
|
|||
routeurPath.client = client
|
||||
watcher.unreadMessagesCount = 0
|
||||
}
|
||||
.environmentObject(routeurPath)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ public struct ConversationsListView: View {
|
|||
.navigationTitle("Direct Messages")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.toolbar {
|
||||
statusEditorToolbarItem(routeurPath: routeurPath, visibility: .direct)
|
||||
StatusEditorToolbarItem(visibility: .direct)
|
||||
}
|
||||
.onChange(of: watcher.latestEvent?.id) { id in
|
||||
if let latestEvent = watcher.latestEvent {
|
||||
|
|
Loading…
Reference in a new issue