Skip to content

Commit

Permalink
fix tapping on a user in the list detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmontz committed Jan 17, 2025
1 parent b5bed57 commit b63a685
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions Nos/Views/Lists/AuthorListDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit b63a685

Please sign in to comment.