From 001ad854c73370cf1888cb378bda554d1a9a859f Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sat, 30 Apr 2022 14:43:45 -0700 Subject: [PATCH] dont start 'new messages' when convo selected --- lib/models/contact.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/models/contact.dart b/lib/models/contact.dart index 5cbdd5cf..00458100 100644 --- a/lib/models/contact.dart +++ b/lib/models/contact.dart @@ -242,7 +242,9 @@ class ContactInfoState extends ChangeNotifier { unreadMessages++; } if (_newMarkerMsgIndex == -1) { - _newMarkerMsgIndex = 0; + if (!selectedConversation) { + _newMarkerMsgIndex = 0; + } } else { _newMarkerMsgIndex++; }