fluffychat/lib/pages
wcjord 6f32aab48b
fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835)
* fix: show knock-accepted notification body when invite follows a knock (#5823)

When Synapse accepts a knock it sends an m.room.member invite event. The client
was displaying the generic 'You have been invited by X' push notification body
because the invite event alone doesn't carry prev_content on the push path.

Use KnockTracker (already used for auto-join) to detect knock-accepted invites
and show a dedicated 'Your join request was accepted!' notification body instead.

- Add knockAccepted string to intl_en.arb
- Extract condition into isKnockAcceptedInvite() pure util for testability
- Expose KnockTracker.getKnockedRoomIds() publicly (was _getKnockedRoomIds)
- Override notification body in push_helper.dart (background) and
  local_notifications_extension.dart (foreground/web)
- Unit tests for all isKnockAcceptedInvite() branches (9 tests)

* formatting

* fix up pangea comments

* fix: avoid race condition with knocked room account data updates and local push notification content

* translations

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
2026-02-27 12:29:50 -05:00
..
archive Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
bootstrap Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
chat 5825 remove unreferenced writing assistance code (#5826) 2026-02-26 14:09:45 -05:00
chat_access_settings Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
chat_details feat: lazy load activities (#5828) 2026-02-26 15:35:34 -05:00
chat_encryption_settings Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
chat_list fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
chat_members Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
chat_permissions_settings feat: embed STT transcription in audio event content (#5731) 2026-02-18 12:39:38 -05:00
chat_search fix: clear last result on start new file search (#5739) 2026-02-18 10:43:06 -05:00
device_settings chore: localize error display in device settings view (#5803) 2026-02-24 16:02:42 -05:00
dialer Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
homeserver_picker Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
image_viewer Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
invitation_selection Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
key_verification Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
login Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
new_group Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
new_private_chat Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
onboarding Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
settings Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
settings_3pid chore: show localized exception in settings 3pid (#5732) 2026-02-18 09:23:47 -05:00
settings_chat Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
settings_emotes Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
settings_homeserver Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
settings_ignore_list Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
settings_notifications chore: hide previos error snackbar in settings notifications before showing another one (#5802) 2026-02-24 15:58:27 -05:00
settings_password Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
settings_security Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
settings_style Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00