DraftService

interface DraftService

Functions

Link copied to clipboard
abstract suspend fun deleteDraft()

Delete the last draft, basically just after sending the message.

Link copied to clipboard
abstract fun getDraft(): UserDraft?

Return the current draft or null.

Link copied to clipboard
abstract fun getDraftLive(): LiveData<Optional<UserDraft>>

Return the current draft if any, as a live data.

Link copied to clipboard
abstract suspend fun saveDraft(draft: UserDraft)

Save or update a draft to the room.