Skip to content

fix(Notifications): split sound playing responsibility#21097

Merged
caybro merged 2 commits into
release/2.38.xfrom
fix/21040-suppress-toasts-sounds
Jun 2, 2026
Merged

fix(Notifications): split sound playing responsibility#21097
caybro merged 2 commits into
release/2.38.xfrom
fix/21040-suppress-toasts-sounds

Conversation

@caybro
Copy link
Copy Markdown
Member

@caybro caybro commented Jun 1, 2026

What does the PR do

  • for OS notifications, always play the sound (if allowed)
  • for toasts, delay the decision for until the toast is added to the model as it might get suppressed

Fixes #21040

Affected areas

Notifications/Manager

Quality checklist

Screencapture of the functionality

N/A

Impact on end user

Less annoying toasts, mainly on mobile

How to test

  • no unwanted sounds should be heard

Risk

low

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts where notification sounds are triggered so that OS notifications play sounds only when an OS notification is actually shown, and in-app toast notifications can control sound playback at the point they’re added to the toast model (to avoid sounds for suppressed toasts). It also includes an unrelated set of i18n additions for a WalletNetworkDelegate string.

Changes:

  • Move OS-notification sound emission to occur only when an OS notification is shown (NotificationsManager).
  • Trigger sound playback when adding an ephemeral/toast notification in the main module (intended for in-app notifications).
  • Add a new WalletNetworkDelegate translation string across multiple locales.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ui/i18n/qml_ko.ts Adds new WalletNetworkDelegate translation entry (unfinished).
ui/i18n/qml_es.ts Adds new WalletNetworkDelegate translation entry (unfinished).
ui/i18n/qml_cs.ts Adds new WalletNetworkDelegate translation entry (unfinished).
ui/i18n/qml_base_lokalise_en.ts Adds the new base English WalletNetworkDelegate string.
ui/i18n/qml_base_en.ts Adds new WalletNetworkDelegate source with unfinished translation placeholder.
src/app/modules/main/module.nim Adds sound emission after adding an ephemeral notification item.
src/app/core/notifications/notifications_manager.nim Ensures sound is emitted only alongside OS notifications (when they are shown).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/modules/main/module.nim Outdated
Comment thread ui/i18n/qml_base_lokalise_en.ts
@status-im-auto
Copy link
Copy Markdown
Member

status-im-auto commented Jun 1, 2026

Jenkins Builds

Click to see older builds (10)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 97205ab 1 2026-06-01 19:28:15 ~8 min tests/nim 📄log
✔️ 97205ab 1 2026-06-01 19:29:34 ~9 min android/arm64 🤖apk 📲
✔️ 97205ab 1 2026-06-01 19:32:58 ~13 min tests/ui 📄log
✔️ 97205ab 1 2026-06-01 19:34:26 ~14 min ios/aarch64 📱ipa 📲
✔️ 97205ab 1 2026-06-01 19:36:27 ~16 min linux/x86_64 📦tgz
✔️ 97205ab 1 2026-06-01 19:38:47 ~18 min macos/aarch64 🍎dmg
✔️ 97205ab 1 2026-06-01 19:44:49 ~24 min windows/x86_64 💿exe
✔️ 97205ab 11534 2026-06-01 19:51:44 ~15 min tests/e2e 📊rpt
✖️ 97205ab 3466 2026-06-01 20:04:20 ~19 min tests/e2e-windows 📊rpt
✖️ 97205ab 3598 2026-06-01 20:22:37 ~52 min tests/e2e-android 📦pkg
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 10faf37 2 2026-06-02 09:18:52 ~14 min ios/aarch64 📱ipa 📲
✔️ 10faf37 2 2026-06-02 09:24:35 ~20 min macos/aarch64 🍎dmg
✔️ 10faf37 2 2026-06-02 09:43:54 ~39 min windows/x86_64 💿exe
✔️ 10faf37 2 2026-06-02 09:57:53 ~53 min tests/nim 📄log
✔️ 10faf37 2 2026-06-02 09:58:19 ~54 min android/arm64 🤖apk 📲
✔️ 10faf37 2 2026-06-02 10:02:09 ~57 min tests/ui 📄log
✔️ 10faf37 2 2026-06-02 10:03:19 ~59 min linux/x86_64 📦tgz
✖️ 10faf37 3475 2026-06-02 10:30:46 ~46 min tests/e2e-windows 📊rpt
✔️ 10faf37 11540 2026-06-02 10:33:09 ~29 min tests/e2e 📊rpt
✖️ 10faf37 3633 2026-06-02 10:56:08 ~57 min tests/e2e-android 📦pkg

Copy link
Copy Markdown
Collaborator

@sunleos sunleos left a comment

Choose a reason for hiding this comment

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

tested on Android 15

the fix is successful

let's merge it

@caybro caybro requested review from alexjba and micieslak June 2, 2026 08:49
caybro added 2 commits June 2, 2026 11:03
- for OS notifications, always play the sound (if allowed)
- for toasts, delay the decision for until the toast is added to the
model as it might get suppressed

Fixes #21040
@caybro caybro force-pushed the fix/21040-suppress-toasts-sounds branch from 97205ab to 10faf37 Compare June 2, 2026 09:03
@caybro caybro requested a review from Copilot June 2, 2026 09:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Comment thread src/app/modules/main/module.nim
Comment thread ui/i18n/qml_base_lokalise_en.ts
@caybro caybro merged commit 76d4e58 into release/2.38.x Jun 2, 2026
11 of 13 checks passed
@caybro caybro deleted the fix/21040-suppress-toasts-sounds branch June 2, 2026 11:52
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.

[Mobile] suppress the notification sound for the suppressed in-app toast notifications fired on opening the app

5 participants