updateProfile method
Implementation
Future<void> updateProfile(String jid) async {
if (jid.isNotEmpty && jid == profile.jid) {
if (!profile.isGroupProfile.checkNull()) {
getProfileDetails(jid).then((value) {
debugPrint("update Profile contact sync $value");
profile_(value);
checkAdminBlocked();
isBlocked(profile.isBlocked);
setChatStatus();
profile_.refresh();
});
} else {
debugPrint("unable to update profile due to group chat");
}
}
}