mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fix drag-n-drop forward of selected album.
This commit is contained in:
@@ -1738,7 +1738,16 @@ std::unique_ptr<QMimeData> HistoryInner::prepareDrag() {
|
||||
return mimeData;
|
||||
} else if (pressedView) {
|
||||
auto forwardIds = MessageIdsList();
|
||||
if (_mouseCursorState == CursorState::Date) {
|
||||
const auto tryForwardSelection = uponSelected
|
||||
&& !_controller->adaptive().isOneColumn();
|
||||
const auto forwardSelectionState = tryForwardSelection
|
||||
? getSelectionState()
|
||||
: HistoryView::TopBarWidget::SelectedState();
|
||||
if (forwardSelectionState.count > 0
|
||||
&& (forwardSelectionState.count
|
||||
== forwardSelectionState.canForwardCount)) {
|
||||
forwardIds = getSelectedItems();
|
||||
} else if (_mouseCursorState == CursorState::Date) {
|
||||
forwardIds = session().data().itemOrItsGroup(_mouseActionItem);
|
||||
} else if (pressedView->isHiddenByGroup() && pressedHandler) {
|
||||
forwardIds = MessageIdsList(1, _mouseActionItem->fullId());
|
||||
|
Reference in New Issue
Block a user