updateProfile method

Future<void> updateProfile(
  1. String jid
)

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");
        SessionManagement.setChatJid(Constants.emptyString);
        profile_(value);
        checkAdminBlocked();
        isBlocked(profile.isBlocked);
        setChatStatus();
        profile_.refresh();
      });
    } else {
      debugPrint("unable to update profile due to group chat");
    }
  }
}