Skip to content

Commit

Permalink
clean up logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara committed May 7, 2024
1 parent 1e4c9c6 commit 8094880
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class MLSClientImpl(
groupId: MLSGroupId,
externalSenders: ByteArray
) {
kaliumLogger.d("createConversation: $defaultCipherSuite")
kaliumLogger.d("createConversation: using defaultCipherSuite=$defaultCipherSuite")
val conf = ConversationConfiguration(
defaultCipherSuite,
listOf(externalSenders),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import com.wire.kalium.logic.functional.Either
import com.wire.kalium.logic.functional.flatMap
import com.wire.kalium.logic.functional.map
import com.wire.kalium.logic.functional.right
import com.wire.kalium.logic.kaliumLogger
import com.wire.kalium.logic.wrapApiRequest
import com.wire.kalium.network.api.base.authenticated.serverpublickey.MLSPublicKeyApi
import io.ktor.util.decodeBase64Bytes
Expand Down Expand Up @@ -63,15 +62,10 @@ class MLSPublicKeysRepositoryImpl(
override suspend fun getKeyForCipherSuite(cipherSuite: CipherSuite): Either<CoreFailure, ByteArray> {

return getKeys().flatMap { serverPublicKeys ->
kaliumLogger.d("serverPublicKeys: $serverPublicKeys")
val keySignature = mlsPublicKeysMapper.fromCipherSuite(cipherSuite)
kaliumLogger.d("keySignature: $keySignature")

val key = serverPublicKeys.removal?.let { removalKeys ->
removalKeys[keySignature.value]
} ?: return Either.Left(MLSFailure.Generic(IllegalStateException("No key found for cipher suite $cipherSuite")))

kaliumLogger.d("key: $key")
key.decodeBase64Bytes().right()
}
}
Expand Down

0 comments on commit 8094880

Please sign in to comment.