diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 3cc255e10a..d53ecedee7 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -766,9 +766,7 @@ bool HistoryItem::canEdit(const QDateTime &cur) const { } if (auto media = msg->getMedia()) { - if (media->canEditCaption()) { - return true; - } else if (media->type() != MediaTypeWebPage) { + if (!media->canEditCaption() && media->type() != MediaTypeWebPage) { return false; } }