onContactSyncComplete static method
void
onContactSyncComplete(
- dynamic result
Implementation
static void onContactSyncComplete(dynamic result) {
LogMessage.d("onContactSyncComplete", result.toString());
// Mirrorfly.getRegisteredUsers(true);
if (result as bool) {
SessionManagement.setInitialContactSync(true);
SessionManagement.setSyncDone(true);
}
if (Get.isRegistered<ContactSyncController>()) {
Get.find<ContactSyncController>().onContactSyncComplete(result);
}
if (Get.isRegistered<ContactController>()) {
Get.find<ContactController>().onContactSyncComplete(result);
}
if (Get.isRegistered<AddParticipantsController>()) {
Get.find<AddParticipantsController>().onContactSyncComplete(result);
}
if (Get.isRegistered<ForwardChatController>()) {
Get.find<ForwardChatController>().onContactSyncComplete(result);
}
if (Get.isRegistered<DashboardController>()) {
Get.find<DashboardController>().onContactSyncComplete(result);
}
if (Get.isRegistered<ChatController>(tag: controllerTag)) {
Get.find<ChatController>(tag: controllerTag)
.onContactSyncComplete(result);
}
if (Get.isRegistered<ChatInfoController>()) {
Get.find<ChatInfoController>().onContactSyncComplete(result);
}
//Mirrorfly.getRegisteredUsers(true).then((value) => LogMessage.d("registeredUsers", value.toString()));
}