File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
vector/src/main/java/im/vector/app/features/crypto/verification Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,6 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
85
85
return BottomSheetVerificationBinding .inflate(inflater, container, false )
86
86
}
87
87
88
- init {
89
- isCancelable = true
90
- }
91
-
92
88
override fun onViewCreated (view : View , savedInstanceState : Bundle ? ) {
93
89
super .onViewCreated(view, savedInstanceState)
94
90
@@ -211,6 +207,8 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetV
211
207
return @withState
212
208
}
213
209
210
+ isCancelable = state.isVerificationRequired.not ()
211
+
214
212
// Did the request result in a SAS transaction?
215
213
if (state.sasTransactionState != null ) {
216
214
when (state.sasTransactionState) {
You can’t perform that action at this time.
0 commit comments