update crypto crate

This commit is contained in:
valere 2022-12-12 15:07:46 +01:00
parent 438b456f8e
commit 8c773b6d00
4 changed files with 10 additions and 10 deletions

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:58160aa0e8a7f8a385d5a1fe146151f1d8e52abd7b2524f7c0097811ff413f00 oid sha256:2757d2d9d582be0747fbdaca8426ade4c333f4dfee288dadd0a3b48dff463527
size 17332496 size 17289398

View file

@ -207,9 +207,9 @@ internal class KotlinSasTransaction(
override fun state() = this.state override fun state() = this.state
override fun supportsEmoji(): Boolean { // override fun supportsEmoji(): Boolean {
return accepted?.shortAuthenticationStrings?.contains(SasMode.EMOJI) == true // return accepted?.shortAuthenticationStrings?.contains(SasMode.EMOJI) == true
} // }
override fun getEmojiCodeRepresentation(): List<EmojiRepresentation> { override fun getEmojiCodeRepresentation(): List<EmojiRepresentation> {
return shortCodeBytes?.getEmojiCodeRepresentation().orEmpty() return shortCodeBytes?.getEmojiCodeRepresentation().orEmpty()

View file

@ -44,7 +44,7 @@ interface SasVerificationTransaction : VerificationTransaction {
override fun isSuccessful() = state() is SasTransactionState.Done override fun isSuccessful() = state() is SasTransactionState.Done
fun supportsEmoji(): Boolean // fun supportsEmoji(): Boolean
fun getEmojiCodeRepresentation(): List<EmojiRepresentation> fun getEmojiCodeRepresentation(): List<EmojiRepresentation>

View file

@ -151,10 +151,10 @@ internal class SasVerification @AssistedInject constructor(
/** Is this verification happening over to-device messages */ /** Is this verification happening over to-device messages */
override fun isToDeviceTransport(): Boolean = inner.roomId() == null override fun isToDeviceTransport(): Boolean = inner.roomId() == null
/** Does the verification flow support showing emojis as the short auth string */ // /** Does the verification flow support showing emojis as the short auth string */
override fun supportsEmoji(): Boolean { // override fun supportsEmoji(): Boolean {
return inner.supportsEmoji() // return inner.supportsEmoji()
} // }
/** Confirm that the short authentication code matches on both sides /** Confirm that the short authentication code matches on both sides
* *