1
0
mirror of git://jb55.com/damus synced 2024-09-19 19:46:51 +00:00

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
Signed-off-by: Terry Yiu <git@tyiu.xyz>
Reviewed-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Terry Yiu 2023-07-03 11:24:42 -04:00 committed by William Casarin
parent 57159f7df9
commit 4b7444f338
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)
})
UserViewRow(damus_state: state, pubkey: pubkey)
.onTapGesture {
state.nav.push(route: Route.ProfileByKey(pubkey: pubkey))
}
}
}
if let relay_connection {