onContactSyncComplete method

void onContactSyncComplete(
  1. dynamic result
)

Implementation

void onContactSyncComplete(dynamic result) {
  mirrorFlyLog("onContactSyncComplete", result.toString());
  // Mirrorfly.getRegisteredUsers(true);
  if (result) {
    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>()) {
    Get.find<ChatController>().onContactSyncComplete(result);
  }
  if (Get.isRegistered<ChatInfoController>()) {
    Get.find<ChatInfoController>().onContactSyncComplete(result);
  }
  //Mirrorfly.getRegisteredUsers(true).then((value) => mirrorFlyLog("registeredUsers", value.toString()));
}