From d6d064b804228e065ef58f0c7b0c7af01522f618 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 2 Jan 2024 10:48:31 -0800 Subject: [PATCH] Fix Crash Bug in Android (ShareFile and Reconnect) In rare situtaitons (exacerbated by debug mode and multiple file shares in succession) ReconnectCwtchForeground events can result in negative message counts being calculated in the UI. This fix ensures that doesn't happen, but a complete fix will need to wait until #664 is implement in the backend --- lib/models/contact.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/models/contact.dart b/lib/models/contact.dart index 2dfae7f2..81b261d0 100644 --- a/lib/models/contact.dart +++ b/lib/models/contact.dart @@ -233,6 +233,7 @@ class ContactInfoState extends ChangeNotifier { return this._newMarkerMsgIndex; } + int get totalMessages => this._totalMessages; int get totalMessages => this._totalMessages; set totalMessages(int newVal) {