notes: generalize event_is_reply a bit
so that it works with NdbNote as well
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user