invoke
open suspend operator override fun invoke(conversationId: <Error class: unknown class>, assetDataPath: <Error class: unknown class>, assetDataSize: Long, assetName: String, assetMimeType: String, brokenState: BrokenState): SendBrokenAssetMessageResult
Function that can be used to send manipulated asset messages to a given conversation. Manipulation can be either a wrong checksum or a changed otrKey. This debug function can be used to test correct client behaviour. It should not be used by clients itself.
In contrast to SendAssetMessageUseCase this debug function does not persist the message.
Return
an SendBrokenAssetMessageResult containing a CoreFailure in case anything goes wrong and Unit in case everything succeeds
Parameters
conversationId
the id of the conversation where the asset wants to be sent
assetDataPath
the raw data of the asset to be uploaded to the backend and sent to the given conversation
assetDataSize
the size of the original asset file
assetName
the name of the original asset file
assetMimeType
the type of the asset file
brokenState
the type of manipulation