mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
SAS: fix potential crash
This commit is contained in:
parent
4e4fb4c565
commit
9c5987b682
1 changed files with 3 additions and 2 deletions
|
@ -97,8 +97,9 @@ class SASVerificationActivity : SimpleFragmentActivity() {
|
|||
}
|
||||
|
||||
if (isIncoming) {
|
||||
val incoming = viewModel.transaction as IncomingSasVerificationTransaction
|
||||
when (incoming.uxState) {
|
||||
val incoming = viewModel.transaction as? IncomingSasVerificationTransaction
|
||||
when (incoming?.uxState) {
|
||||
null,
|
||||
IncomingSasVerificationTransaction.UxState.UNKNOWN,
|
||||
IncomingSasVerificationTransaction.UxState.SHOW_ACCEPT,
|
||||
IncomingSasVerificationTransaction.UxState.WAIT_FOR_KEY_AGREEMENT -> {
|
||||
|
|
Loading…
Reference in a new issue