mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-27 12:59:17 +01:00
Fix envObject for iPad
This commit is contained in:
parent
c9c0bda69e
commit
b30610538f
@ -25,7 +25,6 @@ struct MessagesTab: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.id(currentAccount.account?.id)
|
.id(currentAccount.account?.id)
|
||||||
.environmentObject(routeurPath)
|
|
||||||
}
|
}
|
||||||
.onChange(of: $popToRootTab.wrappedValue) { popToRootTab in
|
.onChange(of: $popToRootTab.wrappedValue) { popToRootTab in
|
||||||
if popToRootTab == .messages {
|
if popToRootTab == .messages {
|
||||||
@ -39,5 +38,6 @@ struct MessagesTab: View {
|
|||||||
routeurPath.client = client
|
routeurPath.client = client
|
||||||
watcher.unreadMessagesCount = 0
|
watcher.unreadMessagesCount = 0
|
||||||
}
|
}
|
||||||
|
.environmentObject(routeurPath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ public struct ConversationsListView: View {
|
|||||||
.navigationTitle("Direct Messages")
|
.navigationTitle("Direct Messages")
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
statusEditorToolbarItem(routeurPath: routeurPath, visibility: .direct)
|
StatusEditorToolbarItem(visibility: .direct)
|
||||||
}
|
}
|
||||||
.onChange(of: watcher.latestEvent?.id) { id in
|
.onChange(of: watcher.latestEvent?.id) { id in
|
||||||
if let latestEvent = watcher.latestEvent {
|
if let latestEvent = watcher.latestEvent {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user