notes: generalize event_is_reply a bit

so that it works with NdbNote as well
This commit is contained in:
William Casarin
2023-07-24 12:39:41 -07:00
parent 6fa9149939
commit b5dd90b36a
5 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ struct ReplyPart: View {
var body: some View {
Group {
if event_is_reply(event, privkey: privkey) {
if event_is_reply(event.event_refs(privkey)) {
ReplyDescription(event: event, profiles: profiles)
} else {
EmptyView()

View File

@@ -42,7 +42,7 @@ struct SelectedEventView: View {
.minimumScaleFactor(0.75)
.lineLimit(1)
if event_is_reply(event, privkey: damus.keypair.privkey) {
if event_is_reply(event.event_refs(damus.keypair.privkey)) {
ReplyDescription(event: event, profiles: damus.profiles)
.padding(.horizontal)
}