2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix jump to last topic in case of unread topic click.

This commit is contained in:
John Preston
2024-05-27 13:33:25 +04:00
parent 0033ad749f
commit daf30dcab8

View File

@@ -1330,8 +1330,7 @@ void InnerWidget::selectByMouse(QPoint globalPosition) {
const auto selectedTopicJump = selected
&& selected->lookupIsInTopicJump(
local.x(),
mouseY - offset - selected->top())
&& _controller->adaptive().isOneColumn();
mouseY - offset - selected->top());
if (_collapsedSelected != collapsedSelected
|| _selected != selected
|| _selectedTopicJump != selectedTopicJump) {
@@ -1373,8 +1372,7 @@ void InnerWidget::selectByMouse(QPoint globalPosition) {
const auto selectedTopicJump = (filteredSelected >= 0)
&& _filterResults[filteredSelected].row->lookupIsInTopicJump(
local.x(),
mouseY - skip - _filterResults[filteredSelected].top)
&& _controller->adaptive().isOneColumn();
mouseY - skip - _filterResults[filteredSelected].top);
if (_filteredSelected != filteredSelected
|| _selectedTopicJump != selectedTopicJump) {
updateSelectedRow();