mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Added SAS do not match api
This commit is contained in:
parent
4c0cbca4cb
commit
4edd5e3530
@ -47,4 +47,7 @@ interface SasVerificationTransaction {
|
||||
* both short codes do match
|
||||
*/
|
||||
fun userHasVerifiedShortCode()
|
||||
|
||||
|
||||
fun shortCodeDoNotMatch()
|
||||
}
|
||||
|
@ -169,6 +169,11 @@ internal abstract class SASVerificationTransaction(
|
||||
} // if not wait for it
|
||||
}
|
||||
|
||||
override fun shortCodeDoNotMatch() {
|
||||
Timber.v("## SAS short code do not match for id:$transactionId")
|
||||
cancel(CancelCode.MismatchedSas)
|
||||
}
|
||||
|
||||
override fun acceptVerificationEvent(senderId: String, info: VerificationInfo) {
|
||||
when (info) {
|
||||
is VerificationInfoStart -> onVerificationStart(info)
|
||||
|
Loading…
Reference in New Issue
Block a user