Send failure verified user : expose new methods on MatrixRoom.
This commit is contained in:
parent
e0bc026d5f
commit
de933b1f34
3 changed files with 37 additions and 3 deletions
|
|
@ -459,8 +459,8 @@ class RustMatrixRoom(
|
|||
return liveTimeline.forwardEvent(eventId, roomIds)
|
||||
}
|
||||
|
||||
override suspend fun retrySendMessage(transactionId: TransactionId): Result<Unit> {
|
||||
return Result.failure(UnsupportedOperationException("Not supported"))
|
||||
override suspend fun retrySendMessage(transactionId: TransactionId): Result<Unit> = runCatching {
|
||||
innerRoom.tryResend(transactionId.value)
|
||||
}
|
||||
|
||||
override suspend fun cancelSend(transactionId: TransactionId): Result<Boolean> {
|
||||
|
|
@ -645,6 +645,23 @@ class RustMatrixRoom(
|
|||
innerRoom.clearComposerDraft()
|
||||
}
|
||||
|
||||
override suspend fun ignoreDeviceTrustAndResend(devices: Map<UserId, List<DeviceId>>, transactionId: TransactionId) = runCatching {
|
||||
innerRoom.ignoreDeviceTrustAndResend(
|
||||
devices = devices
|
||||
.entries.associate { entry ->
|
||||
entry.key.value to entry.value.map { it.value }
|
||||
},
|
||||
transactionId = transactionId.value
|
||||
)
|
||||
}
|
||||
|
||||
override suspend fun withdrawVerificationAndResend(userIds: List<UserId>, transactionId: TransactionId) = runCatching {
|
||||
innerRoom.withdrawVerificationAndResend(
|
||||
userIds = userIds.map { it.value },
|
||||
transactionId = transactionId.value
|
||||
)
|
||||
}
|
||||
|
||||
private fun createTimeline(
|
||||
timeline: InnerTimeline,
|
||||
mode: Timeline.Mode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue