mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 09:55:40 +03:00
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:
commit
b609c5ca10
2 changed files with 3 additions and 0 deletions
1
changelog.d/7792.bugfix
Normal file
1
changelog.d/7792.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
[Session Manager] Other sessions list: cannot select/deselect session by a long press when in select mode
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue