SendGifMessageUseCase

Sends a downloaded GIF the way web and the old iOS app do: an optional caption text message, then the GIF as an image/gif asset. Receivers need nothing new. Both messages follow the conversation's self-deleting timer.

SendGifMessageResult.Success means both messages are stored in the conversation. Like any message, they then send in the background, and a failed delivery shows in the conversation with a retry. That includes a caption that was stored but not delivered, for example while offline: the GIF still follows it.

What the other results leave in the conversation:

Inheritors

Functions

Link copied to clipboard
abstract suspend operator fun invoke(conversationId: ConversationId, downloadedGif: DownloadedGif, caption: String?, quotedMessageId: String?): SendGifMessageResult