-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MBL-1076] Fix v1 user #1902
[MBL-1076] Fix v1 user #1902
Conversation
@@ -198,8 +198,14 @@ final class CommentRepliesViewController: UITableViewController, MessageBannerVi | |||
} | |||
|
|||
private func handleCommentCellHeaderTapped(in cell: UITableViewCell, _ author: Comment.Author) { | |||
guard AppEnvironment.current.currentUser != nil, featureBlockUsersEnabled() else { return } | |||
guard author.isBlocked == false else { return } | |||
guard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could probably be in a helper func somewhere, it's getting a little long!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I thought about that but I didn't see a nice place to put it. I'm going to just leave this for now so we can move forward with this, but I'll look into/see if Scott has ideas for where this kind of helper code should live.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a non-blocking suggestion
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1902 +/- ##
==========================================
- Coverage 83.73% 83.72% -0.02%
==========================================
Files 1226 1226
Lines 111776 111788 +12
Branches 29725 29723 -2
==========================================
- Hits 93598 93596 -2
- Misses 17161 17175 +14
Partials 1017 1017 β View full report in Codecov by Sentry. |
π² What
The backend field is
isBlocked
notis_blocked
. This also stops users from blocking themselves.π See
Jira
β Acceptance criteria