Class AttachmentFilter
-
- All Implemented Interfaces:
public final class AttachmentFilterA filter that is used to filter out attachments that will not be accepted by the backend.
Clients are able to modify the upload configuration in the dashboard and specify what types of files and images they want to allow or block from being uploaded.
-
-
Constructor Summary
Constructors Constructor Description AttachmentFilter(ChatClient chatClient)
-
Method Summary
Modifier and Type Method Description final List<AttachmentMetaData>filterAttachments(List<AttachmentMetaData> attachments)Filters out attachments that can be uploaded to the backend according to files and images upload configurations. -
-
Method Detail
-
filterAttachments
final List<AttachmentMetaData> filterAttachments(List<AttachmentMetaData> attachments)
Filters out attachments that can be uploaded to the backend according to files and images upload configurations.
- Parameters:
attachments- A list of attachments.- Returns:
A list of attachments allowed by the server.
-
-
-
-