android: add realtime foreground local notifications with active chat gating
Some checks failed
CI / test (push) Failing after 2m12s

This commit is contained in:
Codex
2026-03-09 14:48:17 +03:00
parent e8574252ca
commit 98492f869d
8 changed files with 73 additions and 1 deletions

View File

@@ -289,3 +289,9 @@
- Added notification tap deep-link handling to open target chat from `MainActivity` via nav host.
- Added runtime notification permission request flow (Android 13+) in `MessengerNavHost`.
- Added parser unit test (`PushPayloadParserTest`).
### Step 48 - Foreground local notifications from realtime
- Added `ActiveChatTracker` to suppress local notifications for currently opened chat.
- Wired realtime receive-message handling to trigger local notification via `NotificationDispatcher` when chat is not active.
- Added chat title lookup helper in `ChatDao` for notification titles.
- Added explicit realtime stop in `ChatViewModel.onCleared()` to avoid stale collectors.