Fix preview showing on fast userpic click.

This commit is contained in:
John Preston 2024-05-08 17:14:30 +04:00
parent a60783eae3
commit 470b3a2cbd

View file

@ -1760,6 +1760,8 @@ void InnerWidget::mousePressReleased(
QPoint globalPosition,
Qt::MouseButton button,
Qt::KeyboardModifiers modifiers) {
_chatPreviewTimer.cancel();
auto wasDragging = (_dragging != nullptr);
if (wasDragging) {
updateReorderIndexGetCount();