Menu ▾ ▴

#108 Enforce Mute Notifications and Hide Message Preview on the Rust delivery path

closed
nobody
2026-07-18
2026-07-17
Anonymous
No

Originally created by: kristofferR

show_message_notification (src-tauri/src/notifications.rs) read only notification_sound; Mute and Hide Preview were enforced solely in messenger.js, which runs in the remote facebook.com origin. Any carrier:notify emit that bypassed the page-side checks (page bug, stale bundle, hostile script) delivered a full-content banner regardless of those settings.

Fix (in flight): the Rust side now suppresses delivery when muted and redacts title/body/avatar (same "Messenger"/"New message" redaction the page applies) when Hide Preview is on.

Related

Tickets: #135
Tickets: #136

Discussion

  • Anonymous

    Anonymous - 2026-07-18

    Originally posted by: kristofferR

    Fixed in [#136]. show_message_notification now enforces the privacy settings on the trusted Rust side: it suppresses delivery when Mute is on (before touching dedupe state) and applies the generic "Messenger" / "New message" redaction with the avatar dropped when Hide Preview is on — so a page bug or a hostile script emitting carrier:notify can't bypass them.

     

    Related

    Tickets: #136

  • Anonymous

    Anonymous - 2026-07-18

    Ticket changed by: kristofferR

    • status: open --> closed
     

Log in to post a comment.