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
1 changed files with 2 additions and 1 deletions

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);