Skip to content

fix(notifications): respect showContactPicture setting for notification avatars#10786

Open
mvanhorn wants to merge 1 commit intothunderbird:mainfrom
mvanhorn:fix/notification-avatar-setting
Open

fix(notifications): respect showContactPicture setting for notification avatars#10786
mvanhorn wants to merge 1 commit intothunderbird:mainfrom
mvanhorn:fix/notification-avatar-setting

Conversation

@mvanhorn
Copy link
Copy Markdown

@mvanhorn mvanhorn commented Apr 3, 2026

Summary

When contact pictures are disabled in the message list settings, notification avatars are still shown. This checks the isShowContactPicture preference before loading contact avatars for new mail notifications.

Why this matters

PR #9652 added avatar support to notifications but didn't check the existing contact picture visibility setting. Users who disable contact pictures in the message list expect notifications to also respect that preference.

Changes

  • SingleMessageNotificationCreator.kt: Added MessageListPreferencesManager as a constructor dependency and an early return in setAvatar() when isShowContactPicture is false (line 68)
  • CoreNotificationKoinModule.kt: Injected messageListPreferencesManager into SingleMessageNotificationCreator

Testing

  • Verified the preference check reads from the same showContactPicture key used by the message list UI (MessageViewHolder.kt:63)
  • When isShowContactPicture is false, setAvatar() returns without loading or setting the large icon
  • When isShowContactPicture is true (default), behavior is unchanged

Fixes #10750

This contribution was developed with AI assistance (Claude Code).

Check the message list showContactPicture preference before loading
and displaying contact avatars in new mail notifications. When the
setting is disabled, notifications no longer show the avatar as the
large icon.

Fixes thunderbird#10750
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Missing report label. Set exactly one of: report: include, report: exclude OR report: highlight.

@rafaeltonholo rafaeltonholo added merge block: soft freeze PR to main is blocked: risky code or feature flag enablement must wait until soft freeze lifts. report: include Include changes in user-facing reports. labels Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge block: soft freeze PR to main is blocked: risky code or feature flag enablement must wait until soft freeze lifts. report: include Include changes in user-facing reports.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Mail notification: disable avatar

2 participants