mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-06 00:02:48 +02:00
Compare commits
6 Commits
v1.6.44
...
feature/am
Author | SHA1 | Date | |
---|---|---|---|
|
0e61f6f8f8 | ||
|
751aff2d12 | ||
|
d2966fc3d5 | ||
|
2f30718489 | ||
|
976cc4852f | ||
|
329a9973df |
@@ -173,6 +173,9 @@ class SelfVerificationBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSh
|
||||
views.otherUserNameText.text = getString(R.string.crosssigning_verify_this_session)
|
||||
}
|
||||
|
||||
// Don't allow the bottom sheet to be dismissed if verification is required.
|
||||
isCancelable = !state.isVerificationRequired
|
||||
|
||||
super.invalidate()
|
||||
}
|
||||
|
||||
|
@@ -204,8 +204,18 @@ class SelfVerificationViewModel @AssistedInject constructor(
|
||||
}
|
||||
}
|
||||
is VerificationAction.GotItConclusion -> {
|
||||
// just dismiss
|
||||
_viewEvents.post(VerificationBottomSheetViewEvents.Dismiss)
|
||||
withState { state ->
|
||||
if (state.isVerificationRequired && !action.verified) {
|
||||
// we should go back to first screen
|
||||
setState {
|
||||
copy(
|
||||
pendingRequest = Uninitialized,
|
||||
)
|
||||
}
|
||||
} else {
|
||||
_viewEvents.post(VerificationBottomSheetViewEvents.Dismiss)
|
||||
}
|
||||
}
|
||||
}
|
||||
is VerificationAction.GotResultFromSsss -> handleSecretBackFromSSSS(action)
|
||||
VerificationAction.OtherUserDidNotScanned -> {
|
||||
|
@@ -22,7 +22,7 @@ import org.matrix.android.sdk.api.session.room.model.RoomSummary
|
||||
import javax.inject.Inject
|
||||
|
||||
class RoomSummaryRoomListDiffCallback @Inject constructor(
|
||||
vectorPreferences: VectorPreferences
|
||||
// vectorPreferences: VectorPreferences
|
||||
) : DiffUtil.ItemCallback<RoomSummary>() {
|
||||
|
||||
override fun areItemsTheSame(oldItem: RoomSummary, newItem: RoomSummary): Boolean {
|
||||
|
Reference in New Issue
Block a user