fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.6.18 (#4894)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
parent
b2e17622ed
commit
31bb1848e4
23 changed files with 193 additions and 89 deletions
|
|
@ -10,6 +10,7 @@ package io.element.android.libraries.matrix.api.room
|
|||
import io.element.android.libraries.matrix.api.core.EventId
|
||||
import io.element.android.libraries.matrix.api.core.RoomId
|
||||
import io.element.android.libraries.matrix.api.core.SessionId
|
||||
import io.element.android.libraries.matrix.api.core.ThreadId
|
||||
import io.element.android.libraries.matrix.api.core.UserId
|
||||
import io.element.android.libraries.matrix.api.room.draft.ComposerDraft
|
||||
import io.element.android.libraries.matrix.api.room.powerlevels.RoomPowerLevels
|
||||
|
|
@ -219,17 +220,17 @@ interface BaseRoom : Closeable {
|
|||
/**
|
||||
* Store the given `ComposerDraft` in the state store of this room.
|
||||
*/
|
||||
suspend fun saveComposerDraft(composerDraft: ComposerDraft): Result<Unit>
|
||||
suspend fun saveComposerDraft(composerDraft: ComposerDraft, threadRoot: ThreadId?): Result<Unit>
|
||||
|
||||
/**
|
||||
* Retrieve the `ComposerDraft` stored in the state store for this room.
|
||||
*/
|
||||
suspend fun loadComposerDraft(): Result<ComposerDraft?>
|
||||
suspend fun loadComposerDraft(threadRoot: ThreadId?): Result<ComposerDraft?>
|
||||
|
||||
/**
|
||||
* Clear the `ComposerDraft` stored in the state store for this room.
|
||||
*/
|
||||
suspend fun clearComposerDraft(): Result<Unit>
|
||||
suspend fun clearComposerDraft(threadRoot: ThreadId?): Result<Unit>
|
||||
|
||||
/**
|
||||
* Reports a room as inappropriate to the server.
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ interface Timeline : AutoCloseable {
|
|||
* @param zoomLevel Optional zoom level to display the map at.
|
||||
* @param assetType Optional type of the location asset.
|
||||
* Set to SENDER if sharing own location. Set to PIN if sharing any location.
|
||||
* @param replyParameters Optional reply parameters to use when sending the location.
|
||||
*/
|
||||
suspend fun sendLocation(
|
||||
body: String,
|
||||
|
|
@ -138,6 +139,7 @@ interface Timeline : AutoCloseable {
|
|||
description: String? = null,
|
||||
zoomLevel: Int? = null,
|
||||
assetType: AssetType? = null,
|
||||
replyParameters: ReplyParameters?,
|
||||
): Result<Unit>
|
||||
|
||||
suspend fun sendVoiceMessage(
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ sealed interface MessageShield {
|
|||
|
||||
/** The sender was previously verified but is not anymore. */
|
||||
data class VerificationViolation(val isCritical: Boolean) : MessageShield
|
||||
|
||||
/** The sender of the event does not match the owner of the device that created the Megolm session. */
|
||||
data class MismatchedSender(val isCritical: Boolean) : MessageShield
|
||||
}
|
||||
|
||||
val MessageShield.isCritical: Boolean
|
||||
|
|
@ -38,4 +41,5 @@ val MessageShield.isCritical: Boolean
|
|||
is MessageShield.UnverifiedIdentity -> isCritical
|
||||
is MessageShield.SentInClear -> isCritical
|
||||
is MessageShield.VerificationViolation -> isCritical
|
||||
is MessageShield.MismatchedSender -> isCritical
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue