From 470b3a2cbd0ca980ad0376c74367a65010ffd8e3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 8 May 2024 17:14:30 +0400 Subject: [PATCH] Fix preview showing on fast userpic click. --- Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp index e76b137ec9..e21dcbcf48 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp @@ -1760,6 +1760,8 @@ void InnerWidget::mousePressReleased( QPoint globalPosition, Qt::MouseButton button, Qt::KeyboardModifiers modifiers) { + _chatPreviewTimer.cancel(); + auto wasDragging = (_dragging != nullptr); if (wasDragging) { updateReorderIndexGetCount();