GetMessageAssetUseCaseImpl
internal class GetMessageAssetUseCaseImpl(assetRepository: AssetRepository, messageRepository: MessageRepository, userRepository: UserRepository, updateAssetMessageTransferStatus: UpdateAssetMessageTransferStatusUseCase, scope: <Error class: unknown class>, dispatcher: <Error class: unknown class>) : GetMessageAssetUseCase
Constructors
Link copied to clipboard
constructor(assetRepository: AssetRepository, messageRepository: MessageRepository, userRepository: UserRepository, updateAssetMessageTransferStatus: UpdateAssetMessageTransferStatusUseCase, scope: <Error class: unknown class>, dispatcher: <Error class: unknown class>)
Functions
Link copied to clipboard
open suspend operator override fun invoke(conversationId: <Error class: unknown class>, messageId: String): <Error class: unknown class><MessageAssetResult>
Function that enables fetching a message asset locally or if it doesn't exist, downloading it from the server, decrypting it and saving it locally. The function returns a Deferred result to the path where the decrypted asset was stored. The caller is responsible for deciding whether to wait for the result or not.