mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Added SAS do not match api
This commit is contained in:
parent
4c0cbca4cb
commit
4edd5e3530
2 changed files with 8 additions and 0 deletions
|
@ -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 a new issue