Skip to content

Fix blocked conversation playing notification - #203

Merged
thestinger merged 1 commit into
GrapheneOS:mainfrom
m4pl:task/82-block-notification-sounds
Jul 30, 2026
Merged

Fix blocked conversation playing notification#203
thestinger merged 1 commit into
GrapheneOS:mainfrom
m4pl:task/82-block-notification-sounds

Conversation

@m4pl

@m4pl m4pl commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Closes #82

This only reproduces while the blocked conversation itself is open on screen. On the list or in the background the observable soft-sound path no longer fires.

@m4pl
m4pl marked this pull request as ready for review July 14, 2026 10:14
@m4pl
m4pl requested review from RankoR and inthewaves July 14, 2026 10:14

@RankoR RankoR left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to be executed only if MessageNotificationState.getNotificationState() returns null (BugleNotifications.java:157). Non-null will bypass it.

It would be also nice to have tests for it.

@m4pl
m4pl force-pushed the task/82-block-notification-sounds branch from 142388d to c5b92a6 Compare July 21, 2026 10:26
@m4pl
m4pl requested a review from RankoR July 21, 2026 10:51
@m4pl
m4pl force-pushed the task/82-block-notification-sounds branch from c5b92a6 to ea8b0f9 Compare July 21, 2026 20:54
@m4pl
m4pl force-pushed the task/82-block-notification-sounds branch from ea8b0f9 to 573c5ea Compare July 21, 2026 20:57
@m4pl
m4pl requested a review from sdsantos July 28, 2026 10:19

@sdsantos sdsantos left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been able to reproduce the issue and the changes fixed it.

Code looks good to me.

@thestinger
thestinger merged commit 70bdab5 into GrapheneOS:main Jul 30, 2026
7 checks passed
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.

Blocking contacts does not block notification sounds

4 participants