update crypto crate
This commit is contained in:
parent
438b456f8e
commit
8c773b6d00
|
@ -1,3 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:58160aa0e8a7f8a385d5a1fe146151f1d8e52abd7b2524f7c0097811ff413f00
|
||||
size 17332496
|
||||
oid sha256:2757d2d9d582be0747fbdaca8426ade4c333f4dfee288dadd0a3b48dff463527
|
||||
size 17289398
|
||||
|
|
|
@ -207,9 +207,9 @@ internal class KotlinSasTransaction(
|
|||
|
||||
override fun state() = this.state
|
||||
|
||||
override fun supportsEmoji(): Boolean {
|
||||
return accepted?.shortAuthenticationStrings?.contains(SasMode.EMOJI) == true
|
||||
}
|
||||
// override fun supportsEmoji(): Boolean {
|
||||
// return accepted?.shortAuthenticationStrings?.contains(SasMode.EMOJI) == true
|
||||
// }
|
||||
|
||||
override fun getEmojiCodeRepresentation(): List<EmojiRepresentation> {
|
||||
return shortCodeBytes?.getEmojiCodeRepresentation().orEmpty()
|
||||
|
|
|
@ -44,7 +44,7 @@ interface SasVerificationTransaction : VerificationTransaction {
|
|||
|
||||
override fun isSuccessful() = state() is SasTransactionState.Done
|
||||
|
||||
fun supportsEmoji(): Boolean
|
||||
// fun supportsEmoji(): Boolean
|
||||
|
||||
fun getEmojiCodeRepresentation(): List<EmojiRepresentation>
|
||||
|
||||
|
|
|
@ -151,10 +151,10 @@ internal class SasVerification @AssistedInject constructor(
|
|||
/** Is this verification happening over to-device messages */
|
||||
override fun isToDeviceTransport(): Boolean = inner.roomId() == null
|
||||
|
||||
/** Does the verification flow support showing emojis as the short auth string */
|
||||
override fun supportsEmoji(): Boolean {
|
||||
return inner.supportsEmoji()
|
||||
}
|
||||
// /** Does the verification flow support showing emojis as the short auth string */
|
||||
// override fun supportsEmoji(): Boolean {
|
||||
// return inner.supportsEmoji()
|
||||
// }
|
||||
|
||||
/** Confirm that the short authentication code matches on both sides
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue