Skip to content

fix(notifications): Suppress notifications for muted contacts an…#4323

Merged
jamesarich merged 2 commits into
mainfrom
fix/channel-muting
Jan 26, 2026
Merged

fix(notifications): Suppress notifications for muted contacts an…#4323
jamesarich merged 2 commits into
mainfrom
fix/channel-muting

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

prevents notifications from being generated for messages or reactions from muted contacts or nodes.

The isSilent flag, which checks if either a conversation or a specific node is muted, is now used to conditionally suppress notification creation for both text messages and emoji reactions. This ensures that user preferences for muting are respected.

Key Changes:

  • Message Notifications: In MeshDataHandler, a check for !isSilent is added before updating a message notification, preventing it from appearing if the sender or conversation is muted.
  • Reaction Notifications: The logic for creating reaction notifications is now wrapped in an if (!isSilent) block, stopping notifications for reactions from muted sources.

resolves #4303

…d nodes

This commit prevents notifications from being generated for messages or reactions from muted contacts or nodes.

The `isSilent` flag, which checks if either a conversation or a specific node is muted, is now used to conditionally suppress notification creation for both text messages and emoji reactions. This ensures that user preferences for muting are respected.

### Key Changes:
- **Message Notifications:** In `MeshDataHandler`, a check for `!isSilent` is added before updating a message notification, preventing it from appearing if the sender or conversation is muted.
- **Reaction Notifications:** The logic for creating reaction notifications is now wrapped in an `if (!isSilent)` block, stopping notifications for reactions from muted sources.
- **Code Style:** Minor code formatting changes were applied for improved readability in `NetworkRepository.kt`.
- **Copyright Year:** Updated the copyright year to 2026 in `SerialConnectionImpl.kt`.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added the bugfix PR tag label Jan 26, 2026
@jamesarich jamesarich enabled auto-merge January 26, 2026 14:00
@jamesarich jamesarich changed the title refactor(notifications): Suppress notifications for muted contacts an… fix(notifications): Suppress notifications for muted contacts an… Jan 26, 2026
@jamesarich jamesarich added this pull request to the merge queue Jan 26, 2026
@codecov

codecov Bot commented Jan 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (ed6606b) to head (5d2a969).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4323   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines         28      28           
  Branches       8       8           
=====================================
  Misses        28      28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Merged via the queue into main with commit a7d386d Jan 26, 2026
12 checks passed
@jamesarich jamesarich deleted the fix/channel-muting branch January 26, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: can't mute channel notifications in 2.7.11

1 participant