PendingAttachmentInterface

A staged attachment and its upload.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun localPath(): String

The path of the attachment's plaintext file.

Link copied to clipboard

The remote attachment to send. It is complete before the upload.

Link copied to clipboard
abstract suspend fun status(): PendingAttachmentStatus
Link copied to clipboard
abstract suspend fun upload()

Upload the staged ciphertext. Concurrent calls share one upload. A failed upload stays failed until the app calls upload again; after a backend_rejected failure, upload fails again without a request.