Edit : fallback to room.edit when timeline item is not found.
This commit is contained in:
parent
32052a0e80
commit
a23e5e2400
8 changed files with 148 additions and 47 deletions
|
|
@ -126,6 +126,8 @@ interface MatrixRoom : Closeable {
|
|||
|
||||
suspend fun sendMessage(body: String, htmlBody: String?, mentions: List<Mention>): Result<Unit>
|
||||
|
||||
suspend fun editMessage(eventId: EventId, body: String, htmlBody: String?, mentions: List<Mention>): Result<Unit>
|
||||
|
||||
suspend fun sendImage(
|
||||
file: File,
|
||||
thumbnailFile: File?,
|
||||
|
|
|
|||
|
|
@ -18,4 +18,5 @@ package io.element.android.libraries.matrix.api.timeline
|
|||
|
||||
sealed class TimelineException : Exception() {
|
||||
data object CannotPaginate : TimelineException()
|
||||
data object EventNotFound : TimelineException()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue