removeGroupSharedFile method

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

删除群共享文件。

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

Return 无。

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

Implementation

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