Repository navigation
Per-account notifications, prompt unread updates, GNOME banner fix (#118 #103 #98 #119) - #137
Merged
Merged
Conversation
This was referenced Nov 26, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Covers #118 and #103 (per-account notifications switch), #98 (unread count follows WhatsApp's title promptly) and #119 (no banner on Ubuntu GNOME with the .deb).
#118 / #103: notifications on or off per account
notificationsfield on each account in the accounts file (default on; old files read as on).notify::from_event) and WhatsApp's own alert tones are muted in that account's page (it combines with the global Notification sound switch). The "Send test notification" button still works.set_account_notifications: listed in build.rs, granted only to the Settings capability, added to ipc_acl_tests.rs.#98: unread detection
<title>and<head>(catches a replaced<title>node), watches the chat list (#pane-side) and re-reads the title 120 ms after it changes, re-reads onvisibilitychange, and polls every 500 ms (was 2 s). So "Mark all as read" and incoming or read messages update the badge in a fraction of a second instead of up to a poll later.parse_unreadnow ignores invisible direction marks (U+200E etc.) before "(" and reads grouped numbers like "(1,234)". Both were reported as 0 before.#119: no banner on GNOME (.deb)
Evidence from the reporter's dbus-monitor: the Notify call has app_name "whatrust", empty hints (
array [ ]), expire -1. tauri-plugin-notification 2.4.0 sends nodesktop-entry, urgency or category hint. The .deb installswhatRust.desktop(named after productName; badge.rs already relies on this), so GNOME cannot match the sender "whatrust" to an installed app, lists the message but shows no banner. This is a diagnosis from the capture and the plugin source; I could not reproduce it on GNOME.desktop-entry=whatRust(.deb/.rpm),whatrust(AppImage, as install.sh writes), orio.github.karem505.whatRust(Flatpak);urgencynormal;categoryim.received; app name "whatRust". macOS and Windows paths are unchanged.Testing