feat: select multiple chats by holding ctrl or shift in forward box

This commit is contained in:
AlexeyZavar 2025-07-06 11:01:34 +03:00
parent a8fb7cd225
commit 3f5f17705d

View file

@ -2313,7 +2313,12 @@ QPointer<Ui::BoxContent> ShowForwardMessagesBox(
if (showLockedError(row) || (count && row->peer()->isForum())) {
return;
} else if (!count || row->peer()->isForum()) {
ChooseRecipientBoxController::rowClicked(row);
if (base::IsCtrlPressed() || base::IsShiftPressed()) {
delegate()->peerListSetRowChecked(row, !row->checked());
_selectionChanges.fire({});
} else {
ChooseRecipientBoxController::rowClicked(row);
}
} else if (count) {
delegate()->peerListSetRowChecked(row, !row->checked());
_selectionChanges.fire({});