diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 4af5ea2cc1..af3962a83f 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()