MediaGalleryPreviewViewModel

constructor(chatClient: ChatClient, clientState: ClientState, messageId: String, skipEnrichUrl: Boolean = false)

Parameters

chatClient

The low level chat client used for API calls.

clientState

Used to collect client state information such as the connectivity status.

messageId

The ID of the message containing the attachments to be previewed.

skipEnrichUrl

If set to true will skip enriching URLs when you update the message by deleting an attachment contained within it. Set to false by default.