From b63a685ae629f5a11dd425e125d4f7a4b7a879cd Mon Sep 17 00:00:00 2001 From: Bryan Montz Date: Fri, 17 Jan 2025 07:55:53 -0600 Subject: [PATCH] fix tapping on a user in the list detail view --- Nos/Views/Lists/AuthorListDetailView.swift | 29 ++++++++++++---------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/Nos/Views/Lists/AuthorListDetailView.swift b/Nos/Views/Lists/AuthorListDetailView.swift index 95b18136b..06a4e8d17 100644 --- a/Nos/Views/Lists/AuthorListDetailView.swift +++ b/Nos/Views/Lists/AuthorListDetailView.swift @@ -39,19 +39,22 @@ struct AuthorListDetailView: View { LazyVStack { ForEach(list.allAuthors.sorted(by: { ($0.displayName ?? "") < ($1.displayName ?? "") })) { author in - AuthorObservationView(authorID: author.hexadecimalPublicKey) { author in - AuthorCard(author: author) { - router.push(author) - } - .padding(.horizontal, 13) - .padding(.top, 5) - .readabilityPadding() - .task { - subscriptions[author.id] = - await relayService.requestMetadata( - for: author.hexadecimalPublicKey, - since: author.lastUpdatedMetadata - ) + NavigationLink { + ProfileView(author: author) + } label: { + AuthorObservationView(authorID: author.hexadecimalPublicKey) { author in + AuthorCard(author: author) + .padding(.horizontal, 13) + .padding(.top, 5) + .readabilityPadding() + .task { + subscriptions[author.id] = + await relayService.requestMetadata( + for: author.hexadecimalPublicKey, + since: author.lastUpdatedMetadata + ) + } + .disabled(true) // skips the onTap action in AuthorCard } } }