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
This commit is contained in:
tyiu committed 2023-07-02 22:49:20 -04:00
1 parent 6a9b3cad20
commit c1b4f9f5d5
2 files changed
+7 -3

No files matched your search

+3
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 {
+4 -3
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)
})
UserViewRow(damus_state: state, pubkey: pubkey)
.onTapGesture {
state.nav.push(route: Route.ProfileByKey(pubkey: pubkey))
}
}
}
if let relay_connection {