Skip to content

Commit

Permalink
New SDK: fix API break.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed Sep 11, 2024
1 parent 355621b commit 8056285
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ internal class PrepareToEncryptUseCase @Inject constructor(
HistoryVisibility.INVITED
} else {
HistoryVisibility.JOINED
}
},
errorOnVerifiedUserProblem = false,
)
measureTimeMillis {
keyShareLock.withLock {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 -> {
Expand Down

0 comments on commit 8056285

Please sign in to comment.