AttachmentFilter
A 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.
Parameters
chatClient
An instance of the low level chat client to fetch upload config.
Constructors
Functions
Link copied to clipboard
fun filterAttachments(attachments: List<AttachmentMetaData>): List<AttachmentMetaData>
Content copied to clipboard
Filters out attachments that can be uploaded to the backend according to files and images upload configurations.