2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Don't open stories from userpic in narrow chats mode.

This commit is contained in:
John Preston
2023-07-21 20:23:52 +04:00
parent 87206a6c79
commit daef7faaa4

View File

@@ -3336,7 +3336,8 @@ bool InnerWidget::chooseRow(
Qt::KeyboardModifiers modifiers) {
row.newWindow = (modifiers & Qt::ControlModifier);
row.userpicClick = (_lastRowLocalMouseX >= 0)
&& (_lastRowLocalMouseX < _st->nameLeft);
&& (_lastRowLocalMouseX < _st->nameLeft)
&& (width() > _narrowWidth);
return row;
};
auto chosen = modifyChosenRow(computeChosenRow(), modifiers);