Merge pull request #7793 from vector-im/fix/mna/long-press-select-in-other-sessions

[Session Manager] Other sessions list: cannot select/deselect session by a long press when in select mode (PSG-1111)
This commit is contained in:
Maxime NATUREL 2022-12-19 14:50:19 +01:00 committed by GitHub
commit b609c5ca10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

1
changelog.d/7792.bugfix Normal file
View file

@ -0,0 +1 @@
[Session Manager] Other sessions list: cannot select/deselect session by a long press when in select mode

View file

@ -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))
}
}