mirror of
https://github.com/element-hq/element-android
synced 2024-10-02 22:38:32 +00:00
update crypto crate
This commit is contained in:
parent
438b456f8e
commit
8c773b6d00
BIN
library/rustCrypto/matrix-rust-sdk-crypto.aar
(Stored with Git LFS)
BIN
library/rustCrypto/matrix-rust-sdk-crypto.aar
(Stored with Git LFS)
Binary file not shown.
|
@ -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 a new issue