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

Binary file not shown.

View file

@ -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()

View file

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

View file

@ -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
*