counter sync

This commit is contained in:
erinn 2021-06-17 15:44:42 -07:00
parent 2d49c50de5
commit 24139a4683
1 changed files with 5 additions and 0 deletions

View File

@ -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"];