MediaGalleryPreviewViewModelFactory

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

Parameters

chatClient

An instance of the low level client used for basic chat API functionality.

clientState

Holds information about the current SDK state.

messageId

The ID of the message we are fetching in order to display the attachments.

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.