From 5286c7b1c3fcab65190a39be22339102e0034363 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 3 Sep 2024 18:23:09 +0400 Subject: [PATCH] Allow selecting text in collapsed quotes. --- Telegram/SourceFiles/history/view/history_view_message.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index b0c8c223fb..35f7647bcd 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -26,6 +26,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "ui/rect.h" #include "ui/round_rect.h" #include "ui/text/text_utilities.h" +#include "ui/text/text_extended_data.h" #include "ui/power_saving.h" #include "data/components/factchecks.h" #include "data/components/sponsored_messages.h" @@ -3576,6 +3577,9 @@ bool Message::allowTextSelectionByHandler( return true; } } + if (dynamic_cast(handler.get())) { + return true; + } return false; }