Chats: allow uploading multiple attachments
Summary
If the backend supports it (by setting instance.configuration.chats.max_media_attachments
to a value > 1), allow the user to upload multiple attachments to a chat.
In that case, we send media_ids
(string[]
) to the create message endpoint. If max attachments is 1, we send both media_id
and media_ids
for backwards-compat.