Mark chats seen after user interaction
Prevent passive open, restored, or unfocused chats from clearing notifications. Track qualifying focused interactions and cover passive and active seen-watermark behavior with tests and notes.
This commit is contained in:
@@ -374,7 +374,9 @@ class _PipelinesAppState extends State<PipelinesApp>
|
||||
},
|
||||
sessionTitle: _chatSessionTitle,
|
||||
openChat: (id) {
|
||||
if (mounted) _delegate.goTo(AppRoute.chatSession(id));
|
||||
if (!mounted) return;
|
||||
widget.servers?.requestChatOpen(id);
|
||||
_delegate.goTo(AppRoute.chatSession(id));
|
||||
},
|
||||
bridge: _notifications.bridge,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user