removeTagsFromConversation static method

Future removeTagsFromConversation(
  1. int? conversationType,
  2. String? targetId,
  3. List? tagIds,
  4. dynamic finished(
    1. bool? result,
    2. int? code
    )?,
)

删除指定会话中的某些标签 conversationType 会话类型 targetId 会话 id tagIds 标签 id 列表

Implementation

static Future removeTagsFromConversation(int? conversationType, String? targetId, List? tagIds, Function(bool? result, int? code)? finished) async {
  if (conversationType == null || targetId == null || tagIds == null) {
    developer.log("removeTagsFromConversation fail: conversationType is null or targetId is null or tagIds is null", name: "RongIMClient");
    return null;
  }
  Map paramMap = {"conversationType": conversationType, "targetId": targetId, "tagIds": tagIds};
  Map? resultMap = await _channel.invokeMethod(RCMethodKey.RemoveTagsFromConversation, paramMap);
  if (resultMap != null) {
    bool? reuslt = resultMap["result"];
    int? code = resultMap["code"];
    if (finished != null) {
      finished(reuslt, code);
    }
  }
}