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
@mvanhorn mvanhorn requested a review from a team as a code owner April 3, 2026 06:40
@mvanhorn mvanhorn requested a review from rafaeltonholo April 3, 2026 06:40
@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.

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.

New Mail notification: disable avatar

2 participants