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
This commit is contained in:
Sarah Jamie Lewis 2024-01-02 10:48:31 -08:00
parent 2012b2dc7d
commit d6d064b804
1 changed files with 1 additions and 0 deletions

View File

@ -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) {