commit cad23d5965827c3861c470465312765428428ccc
parent 5e14091f093bda6ea0a07ca24dfe747b1f21b1a9
Author: William Casarin <jb55@jb55.com>
Date: Mon, 18 Apr 2022 10:33:27 -0700
fix crash for profiles environment object in replies
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/damus/Views/EventActionBar.swift b/damus/Views/EventActionBar.swift
@@ -49,6 +49,7 @@ struct EventActionBar: View {
switch sheet {
case .reply:
ReplyView(replying_to: event)
+ .environmentObject(profiles)
}
}
}
diff --git a/damus/Views/EventView.swift b/damus/Views/EventView.swift
@@ -69,6 +69,7 @@ struct EventView: View {
if has_action_bar {
EventActionBar(event: event)
+ .environmentObject(profiles)
}
Divider()