diff --git a/changelog.d/7792.bugfix b/changelog.d/7792.bugfix new file mode 100644 index 0000000000..d5c80a0825 --- /dev/null +++ b/changelog.d/7792.bugfix @@ -0,0 +1 @@ +[Session Manager] Other sessions list: cannot select/deselect session by a long press when in select mode diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt index be87645ea6..b6b8b5658f 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt @@ -346,6 +346,8 @@ class OtherSessionsFragment : override fun onOtherSessionLongClicked(deviceId: String) = withState(viewModel) { state -> if (!state.isSelectModeEnabled) { enableSelectMode(true, deviceId) + } else { + viewModel.handle(OtherSessionsAction.ToggleSelectionForDevice(deviceId)) } }