sendMedia
abstract fun sendMedia( attachment: ContentAttachmentData, compressBeforeSending: Boolean, roomIds: Set<String>, rootThreadEventId: String? = null, relatesTo: RelationDefaultContent? = null, additionalContent: Content? = null): Cancelable
Content copied to clipboard
Method to send a media asynchronously.
Return
Parameters
attachment
the media to send
compressBeforeSending
set to true to compress images before sending them
roomIds
set of roomIds to where the media will be sent. The current roomId will be add to this set if not present. It can be useful to send media to multiple room. It's safe to include the current roomId in this set
rootThreadEventId
when this param is not null, the Media will be sent in this specific thread
relatesTo
add a relation content to the media event
additionalContent
additional content to put in the event content