Skip to content

Commit 8056285

Browse files
committed
New SDK: fix API break.
1 parent 355621b commit 8056285

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/PrepareToEncryptUseCase.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ internal class PrepareToEncryptUseCase @Inject constructor(
121121
HistoryVisibility.INVITED
122122
} else {
123123
HistoryVisibility.JOINED
124-
}
124+
},
125+
errorOnVerifiedUserProblem = false,
125126
)
126127
measureTimeMillis {
127128
keyShareLock.withLock {

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/verification/SasVerification.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import org.matrix.rustcomponents.sdk.crypto.CryptoStoreException
3434
import org.matrix.rustcomponents.sdk.crypto.Sas
3535
import org.matrix.rustcomponents.sdk.crypto.SasListener
3636
import org.matrix.rustcomponents.sdk.crypto.SasState
37+
import timber.log.Timber
3738

3839
/** Class representing a short auth string verification flow. */
3940
internal class SasVerification @AssistedInject constructor(
@@ -72,6 +73,11 @@ internal class SasVerification @AssistedInject constructor(
7273

7374
override fun state(): SasTransactionState {
7475
return when (val state = innerState) {
76+
SasState.Created -> {
77+
// Note: this does not seem to be used, but emit a warning just in case.
78+
Timber.w("SasState.Created received")
79+
SasTransactionState.None
80+
}
7581
SasState.Started -> SasTransactionState.SasStarted
7682
SasState.Accepted -> SasTransactionState.SasAccepted
7783
is SasState.KeysExchanged -> {

0 commit comments

Comments
 (0)