muteGroupMember method

  1. @override
Future<V2TimCallback> muteGroupMember({
  1. required String groupID,
  2. required String userID,
  3. required int seconds,
})
override

Implementation

@override
Future<V2TimCallback> muteGroupMember({
  required String groupID,
  required String userID,
  required int seconds,
}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getGroupManager()
      .muteGroupMember(groupID: groupID, userID: userID, seconds: seconds);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}