Skip to content

Commit

Permalink
chore: update CC to rc.56.hotfix.2 (#2737)
Browse files Browse the repository at this point in the history
* chore: cc to rc.59

* fix test

* use CC vrc.56.hotfix.2
  • Loading branch information
MohamadJaara authored May 6, 2024
1 parent a1fdb7f commit e0d7415
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ProteusClientTest : BaseProteusClientTest() {
private val alice = SampleUser(CryptoUserID("aliceId", "aliceDomain"), "Alice")
private val bob = SampleUser(CryptoUserID("bobId", "bobDomain"), "Bob")
private val aliceSessionId = CryptoSessionId(alice.id, CryptoClientId("aliceClient"))
private val bobSessionId = CryptoSessionId(alice.id, CryptoClientId("aliceClient"))
private val bobSessionId = CryptoSessionId(bob.id, CryptoClientId("bobClient"))

@BeforeTest
fun before() {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pbandk = "0.14.2"
turbine = "1.0.0"
avs = "9.6.13"
jna = "5.14.0"
core-crypto = "1.0.0-rc.56-hotfix.1"
core-crypto = "1.0.0-rc.56-hotfix.2"
core-crypto-multiplatform = "0.6.0-rc.3-multiplatform-pre1"
completeKotlin = "1.1.0"
desugar-jdk = "2.0.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ import com.wire.crypto.CoreCryptoException
import uniffi.core_crypto.CryptoError

actual fun mapMLSException(exception: Exception): MLSFailure =
if (exception is CoreCryptoException.CryptoException) {
when (exception.error) {
is CryptoError.WrongEpoch -> MLSFailure.WrongEpoch
is CryptoError.DuplicateMessage -> MLSFailure.DuplicateMessage
is CryptoError.BufferedFutureMessage -> MLSFailure.BufferedFutureMessage
is CryptoError.SelfCommitIgnored -> MLSFailure.SelfCommitIgnored
is CryptoError.UnmergedPendingGroup -> MLSFailure.UnmergedPendingGroup
is CryptoError.StaleProposal -> MLSFailure.StaleProposal
is CryptoError.StaleCommit -> MLSFailure.StaleCommit
is CryptoError.ConversationAlreadyExists -> MLSFailure.ConversationAlreadyExists
is CryptoError.MessageEpochTooOld -> MLSFailure.MessageEpochTooOld
else -> MLSFailure.Generic(exception)
}
} else {
MLSFailure.Generic(exception)
if (exception is CoreCryptoException.CryptoException) {
when (exception.error) {
is CryptoError.WrongEpoch -> MLSFailure.WrongEpoch
is CryptoError.DuplicateMessage -> MLSFailure.DuplicateMessage
is CryptoError.BufferedFutureMessage -> MLSFailure.BufferedFutureMessage
is CryptoError.SelfCommitIgnored -> MLSFailure.SelfCommitIgnored
is CryptoError.UnmergedPendingGroup -> MLSFailure.UnmergedPendingGroup
is CryptoError.StaleProposal -> MLSFailure.StaleProposal
is CryptoError.StaleCommit -> MLSFailure.StaleCommit
is CryptoError.ConversationAlreadyExists -> MLSFailure.ConversationAlreadyExists
is CryptoError.MessageEpochTooOld -> MLSFailure.MessageEpochTooOld
else -> MLSFailure.Generic(exception)
}
} else {
MLSFailure.Generic(exception)
}

0 comments on commit e0d7415

Please sign in to comment.