Skip to content

Commit 4a49f2f

Browse files
committed
Check if bottom sheet is cancellable.
1 parent a12460b commit 4a49f2f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

vector/src/main/java/im/vector/app/features/crypto/verification/VerificationBottomSheet.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
8585
return BottomSheetVerificationBinding.inflate(inflater, container, false)
8686
}
8787

88-
init {
89-
isCancelable = true
90-
}
91-
9288
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
9389
super.onViewCreated(view, savedInstanceState)
9490

@@ -211,6 +207,8 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
211207
return@withState
212208
}
213209

210+
isCancelable = state.isVerificationRequired.not()
211+
214212
// Did the request result in a SAS transaction?
215213
if (state.sasTransactionState != null) {
216214
when (state.sasTransactionState) {

0 commit comments

Comments
 (0)