* 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> |
||
|---|---|---|
| .. | ||
| choreo_record_test.dart | ||
| igc_response_model_test.dart | ||
| knock_notification_utils_test.dart | ||
| language_model_test.dart | ||
| pangea_match_model_test.dart | ||
| practice_target_scorer_test.dart | ||
| span_data_model_test.dart | ||
| text_normalization_test.dart | ||
| update_bot_options_test.dart | ||