From 24139a46830c029c06b3c406e5b9afbb048e99e5 Mon Sep 17 00:00:00 2001 From: erinn Date: Thu, 17 Jun 2021 15:44:42 -0700 Subject: [PATCH] counter sync --- lib/cwtch/cwtchNotifier.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cwtch/cwtchNotifier.dart b/lib/cwtch/cwtchNotifier.dart index a8bb81a..09c0f35 100644 --- a/lib/cwtch/cwtchNotifier.dart +++ b/lib/cwtch/cwtchNotifier.dart @@ -141,6 +141,11 @@ class CwtchNotifier { } } break; + case "MessageCounterResync": + var contactHandle = data["RemotePeer"]; + if (contactHandle == null || contactHandle == "") contactHandle = data["GroupID"]; + profileCN.getProfile(data["Identity"])?.contactList.getContact(contactHandle)!.totalMessages = int.parse(data["Data"]); + break; case "IndexedFailure": print("IndexedFailure: $data"); var idx = data["Index"];