Skip to content

Filter group messages from blocked senders#2103

Merged
SessionHero01 merged 2 commits intodevfrom
fix/group-message-blocked-sender-filter
Apr 1, 2026
Merged

Filter group messages from blocked senders#2103
SessionHero01 merged 2 commits intodevfrom
fix/group-message-blocked-sender-filter

Conversation

@SessionHero01
Copy link
Copy Markdown
Collaborator

Summary

  • Android was passing checkForBlockStatus = false in parseGroupMessage, so messages from blocked contacts in groups were always processed and displayed
  • iOS and Desktop both discard visible messages from blocked senders in groups — Android was the odd one out
  • Fix: set checkForBlockStatus = true in parseGroupMessage so the existing isUserBlocked + shouldDiscardIfBlocked guard applies to group messages

Test plan

  • Block contact B on device A (and vice versa)
  • Both are members of the same closed group
  • B sends a message to the group
  • Verify A does not see B's message in the group
  • Verify unblocked members' messages still appear normally

🤖 Generated with Claude Code

iOS and Desktop already discard visible messages from blocked contacts
in groups; Android was passing checkForBlockStatus=false for group
messages, so blocked senders' messages were always processed and shown.

Change parseGroupMessage to checkForBlockStatus=true so the existing
isUserBlocked + shouldDiscardIfBlocked guard applies consistently.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@SessionHero01 SessionHero01 enabled auto-merge (squash) April 1, 2026 05:16
@SessionHero01 SessionHero01 merged commit efd4bd1 into dev Apr 1, 2026
5 checks passed
@SessionHero01 SessionHero01 deleted the fix/group-message-blocked-sender-filter branch April 1, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants