updateProfileSearch method

Future<void> updateProfileSearch(
  1. String jid
)

Implementation

Future<void> updateProfileSearch(String jid) async {
  debugPrint("updateProfileSearch jid $jid");
  if (jid.isNotEmpty) {
    var userListIndex = _userList.indexWhere((element) => element.jid == jid);
    debugPrint("userListIndex $userListIndex");
    getProfileDetails(jid).then((value) {
      debugPrint("get profile detail dashboard $value");
      if(value.jid !=null) {
        profile_(value);
        if (!userListIndex.isNegative) {
          _userList[userListIndex] = value;
        }
      }
    });
  }
}