feat: Implement push notification suppression for active chats, prevent duplicate self-messages, update the chat typing indicator, and add back buttons to static screens.

This commit is contained in:
pradeepkumar committed 2026-03-18 17:24:32 +05:30
1 parent cde137e07b
commit a4aa9bfe25
8 files changed
+196 -35

No files matched your search

@@ -100,6 +100,10 @@ class MessagingNotifier extends StateNotifier<MessagingState> {
// Avoid duplicates (broadcast may arrive after ack for sender's own message)
if (currentMessages.any((m) => m.id == message.id)) return;
// Ignore own messages — the sender path handles these via sendMessage()
final isMine = message.senderId == _currentUserId;
if (isMine) return;
currentMessages.insert(0, message);
final updatedMessages =
Map<String, List<ChatMessage>>.from(state.messages)