MessageAttachmentsDao

Functions

Link copied to clipboard
abstract suspend fun getAssetPath(assetId: String): String?
Link copied to clipboard
abstract suspend fun getAttachment(assetId: String): MessageAttachmentEntity
Link copied to clipboard
abstract suspend fun getAttachments(messageId: String, conversationId: QualifiedIDEntity): List<MessageAttachmentEntity>
Link copied to clipboard
abstract suspend fun getAttachmentsByAssetIds(assetIds: List<String>): List<MessageAttachmentEntity>
Link copied to clipboard
abstract fun observeAttachments(): Flow<List<MessageAttachmentEntity>>
Link copied to clipboard
abstract suspend fun setAssetPath(assetId: String, path: String)
Link copied to clipboard
abstract suspend fun setLocalPath(assetId: String, path: String?)
Link copied to clipboard
abstract suspend fun setPreviewUrl(assetId: String, previewUrl: String?, conversationId: String?)
Link copied to clipboard
abstract suspend fun setTransferStatus(assetId: String, status: String)
Link copied to clipboard
abstract suspend fun updateAttachment(assetId: String, url: String?, urlExpiresAt: Long?, hash: String?, remotePath: String, isEditSupported: Boolean)