From 8d1db85a2801c49e4b64e7daa1bb24d1533df9d9 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 20 May 2020 11:54:24 +0300 Subject: [PATCH] Fixed album items selection in section of scheduled messages. This bug relates only to albums with captions. --- Telegram/SourceFiles/history/view/history_view_message.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index 6f83064b1..ab905aa4b 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -1763,6 +1763,9 @@ void Message::fromNameUpdated(int width) const { } TextSelection Message::skipTextSelection(TextSelection selection) const { + if (selection.from == 0xFFFF) { + return selection; + } return HistoryView::UnshiftItemSelection(selection, message()->_text); }