removeGroupSharedFile method
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 ChatError.
Implementation
Future<void> removeGroupSharedFile(
String groupId,
String fileId,
) async {
Map req = {'groupId': groupId, 'fileId': fileId};
Map result =
await _channel.invokeMethod(ChatMethodKeys.removeGroupSharedFile, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}