init method
Implementation
Future<void> init(BuildContext context,{bool forward = false,List<String>? messageIds ,bool group = false,String groupjid = Constants.emptyString}) async {
this.context=context;
isForward(forward);
if (isForward.value) {
isCreateGroup(false);
if(messageIds!=null) {
forwardMessageIds.addAll(messageIds);
}
} else {
isCreateGroup(group);
groupJid(groupjid);
}
scrollController.addListener(_scrollListener);
//searchQuery.addListener(_searchListener);
if (await AppUtils.isNetConnected() || !MirrorflyUikit.instance.isTrialLicenceKey) {
isPageLoading(true);
fetchUsers(false);
} else {
toToast(AppConstants.noInternetConnection);
}
//Mirrorfly.syncContacts(true);
//Mirrorfly.getRegisteredUsers(true).then((value) => mirrorFlyLog("registeredUsers", value.toString()));
// progressSpinner(!MirrorflyUikit.isTrialLicence && await Mirrorfly.contactSyncStateValue());
}