setFriendInfo method
Implementation
@override
Future<V2TimCallback> setFriendInfo({
required String userID,
String? friendRemark,
Map<String, String>? friendCustomInfo,
}) async {
final res = await TencentImSDKPlugin.v2TIMManager
.getFriendshipManager()
.setFriendInfo(
friendRemark: friendRemark,
friendCustomInfo: friendCustomInfo,
userID: userID);
if (res.code != 0) {
_coreService.callOnCallback(TIMCallback(
type: TIMCallbackType.API_ERROR,
errorMsg: res.desc,
errorCode: res.code));
}
return res;
}