fluffychat/lib/l10n
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
..
intl_ar.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_be.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_bn.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_bo.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ca.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_cs.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_da.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_de.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_el.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_en.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_eo.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_es.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_et.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_eu.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_fa.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_fi.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_fil.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_fr.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ga.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_gl.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_he.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_hi.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_hr.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_hu.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ia.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_id.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ie.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_it.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ja.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ka.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ko.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_lt.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_lv.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_nb.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_nl.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_pl.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_pt.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_pt_BR.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_pt_PT.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ro.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ru.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_sk.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_sl.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_sr.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_sv.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_ta.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_te.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_th.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_tr.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_uk.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_uz.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_vi.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_yue.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_yue_Hant.arb.backup Fluffychat merge 2 (#5590) 2026-02-10 08:01:12 -05:00
intl_zh.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00
intl_zh_Hant.arb fix: show "knock accepted" push notification body instead of "You have been invited" (#5823) (#5835) 2026-02-27 12:29:50 -05:00