mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
New SDK: fix API break.
This commit is contained in:
parent
355621b0c7
commit
8056285776
2 changed files with 8 additions and 1 deletions
|
@ -121,7 +121,8 @@ internal class PrepareToEncryptUseCase @Inject constructor(
|
|||
HistoryVisibility.INVITED
|
||||
} else {
|
||||
HistoryVisibility.JOINED
|
||||
}
|
||||
},
|
||||
errorOnVerifiedUserProblem = false,
|
||||
)
|
||||
measureTimeMillis {
|
||||
keyShareLock.withLock {
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.matrix.rustcomponents.sdk.crypto.CryptoStoreException
|
|||
import org.matrix.rustcomponents.sdk.crypto.Sas
|
||||
import org.matrix.rustcomponents.sdk.crypto.SasListener
|
||||
import org.matrix.rustcomponents.sdk.crypto.SasState
|
||||
import timber.log.Timber
|
||||
|
||||
/** Class representing a short auth string verification flow. */
|
||||
internal class SasVerification @AssistedInject constructor(
|
||||
|
@ -72,6 +73,11 @@ internal class SasVerification @AssistedInject constructor(
|
|||
|
||||
override fun state(): SasTransactionState {
|
||||
return when (val state = innerState) {
|
||||
SasState.Created -> {
|
||||
// Note: this does not seem to be used, but emit a warning just in case.
|
||||
Timber.w("SasState.Created received")
|
||||
SasTransactionState.None
|
||||
}
|
||||
SasState.Started -> SasTransactionState.SasStarted
|
||||
SasState.Accepted -> SasTransactionState.SasAccepted
|
||||
is SasState.KeysExchanged -> {
|
||||
|
|
Loading…
Reference in a new issue