reply: ensure the person you're replying to is the first entry in the reply description

Suggested-by: Tanel
Changelog-Fixed: Ensure the person you're replying to is the first entry in the reply description
This commit is contained in:
William Casarin
2023-08-06 15:37:32 -07:00
parent e642913944
commit 25e022d933
5 changed files with 40 additions and 14 deletions

View File

@@ -69,7 +69,7 @@ struct EventShell<Content: View>: View {
EventTop(state: state, event: event, pubkey: pubkey, is_anon: is_anon)
if !options.contains(.no_replying_to) {
ReplyPart(event: event, privkey: state.keypair.privkey, profiles: state.profiles)
ReplyPart(events: state.events, event: event, privkey: state.keypair.privkey, profiles: state.profiles)
}
content
@@ -95,7 +95,7 @@ struct EventShell<Content: View>: View {
VStack {
EventTop(state: state, event: event, pubkey: pubkey, is_anon: is_anon)
ReplyPart(event: event, privkey: state.keypair.privkey, profiles: state.profiles)
ReplyPart(events: state.events, event: event, privkey: state.keypair.privkey, profiles: state.profiles)
}
}
.padding(.horizontal)