From 8b1ac9fa6ef22b19f6c164228612e40d71c9861b Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 4 Dec 2018 18:33:00 +0300 Subject: [PATCH] Fixed skipping message with MediaWebPage on KeyUp. --- Telegram/SourceFiles/history/history.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 4af5ea2cc..af3962a83 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -2527,7 +2527,10 @@ HistoryItem *History::lastSentMessage() const { const auto item = message->data(); // Skip if message is video message or sticker. if (const auto media = item->media()) { - if (!media->allowsEditCaption()) continue; + // Skip only if media is not webpage. + if (!media->webpage() && !media->allowsEditCaption()) { + continue; + } } if (IsServerMsgId(item->id) && !item->serviceMsg()