Added SAS do not match api

This commit is contained in:
Valere 2019-12-27 15:46:20 +01:00
parent 4c0cbca4cb
commit 4edd5e3530
2 changed files with 8 additions and 0 deletions

View File

@ -47,4 +47,7 @@ interface SasVerificationTransaction {
* both short codes do match
*/
fun userHasVerifiedShortCode()
fun shortCodeDoNotMatch()
}

View File

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