mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Explicitly pass the context into the cell's environment. (#539)
This commit is contained in:
@@ -197,6 +197,7 @@ class TimelineTableViewController: UIViewController {
|
|||||||
.id(timelineItem.id)
|
.id(timelineItem.id)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.opacity(opacity)
|
.opacity(opacity)
|
||||||
|
.environmentObject(coordinator.context) // Attempted fix at a crash in TimelineItemContextMenu
|
||||||
.onAppear {
|
.onAppear {
|
||||||
coordinator.send(viewAction: .itemAppeared(id: timelineItem.id))
|
coordinator.send(viewAction: .itemAppeared(id: timelineItem.id))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Context Menu Crash: Attempted fix by explicitly passing in the context to each cell.
|
||||||
Reference in New Issue
Block a user