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");
    if (!userListIndex.isNegative) {
      getProfileDetails(jid).then((value) {
        debugPrint("get profile detail dashboard $value");
        profile_(value);
        _userList[userListIndex] = value;
      });
    }
  }
}