removeGroupSharedFile method Null safety
Removes a shared file of the group.
Group members can delete their own uploaded files. The group owner or admin can delete all shared files.
Param groupId
The group ID.
Param fileId
The ID of the shared file.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> removeGroupSharedFile(
String groupId,
String fileId,
) async {
Map req = {'groupId': groupId, 'fileId': fileId};
Map result =
await _channel.invokeMethod(ChatMethodKeys.removeGroupSharedFile, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}