fix crash for profiles environment object in replies

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-04-18 10:33:27 -07:00
parent 5e14091f09
commit cad23d5965
2 changed files with 2 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ struct EventActionBar: View {
switch sheet {
case .reply:
ReplyView(replying_to: event)
.environmentObject(profiles)
}
}
}

View File

@@ -69,6 +69,7 @@ struct EventView: View {
if has_action_bar {
EventActionBar(event: event)
.environmentObject(profiles)
}
Divider()