Skip to content

Commit

Permalink
Merge pull request #7793 from vector-im/fix/mna/long-press-select-in-…
Browse files Browse the repository at this point in the history
…other-sessions

[Session Manager] Other sessions list: cannot select/deselect session by a long press when in select mode (PSG-1111)
  • Loading branch information
mnaturel authored Dec 19, 2022
2 parents 8dd2ebf + eb31174 commit b609c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/7792.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Session Manager] Other sessions list: cannot select/deselect session by a long press when in select mode
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit b609c5c

Please sign in to comment.