Compare commits

...

1 Commits

Author SHA1 Message Date
c1b4f9f5d5 Fix profile navigation bugs from muted users list and relay list views
Changelog-Fixed: Fix profile navigation bugs from muted users list and relay list views
2023-07-02 22:49:20 -04:00
2 changed files with 7 additions and 3 deletions

View File

@@ -42,6 +42,9 @@ struct MutelistView: View {
.swipeActions {
RemoveAction(pubkey: pubkey)
}
.onTapGesture {
damus_state.nav.push(route: Route.ProfileByKey(pubkey: pubkey))
}
}
.navigationTitle(NSLocalizedString("Muted Users", comment: "Navigation title of view to see list of muted users."))
.onAppear {

View File

@@ -72,9 +72,10 @@ struct RelayDetailView: View {
if let pubkey = nip11.pubkey {
Section(NSLocalizedString("Admin", comment: "Label to display relay contact user.")) {
NavigationLink(value: Route.ProfileByKey(pubkey: pubkey), label: {
UserViewRow(damus_state: state, pubkey: pubkey)
})
.onTapGesture {
state.nav.push(route: Route.ProfileByKey(pubkey: pubkey))
}
}
}
if let relay_connection {