removeGroupSharedFile method

Future<void> removeGroupSharedFile(
  1. String groupId,
  2. String fileId
)

~english Removes group shared files.

Param groupId The group ID. Param fileId The shared file ID to be removed.

Returns None.

Throws Exception description, see EMError. ~end

~chinese 删除群共享文件。

Param groupId 群组 ID。 Param fileId 要删除的共享文件 ID。

Return 无。

Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 EMError. ~end

Implementation

Future<void> removeGroupSharedFile(
  String groupId,
  String fileId,
) async {
  Map req = {'groupId': groupId, 'fileId': fileId};
  Map result = await Client.instance.groupManager
      .callNativeMethod(ChatMethodKeys.removeGroupSharedFile, req);
  try {
    EMError.hasErrorFromResult(result);
  } catch (e) {
    rethrow;
  }
}