diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 89354275ef..39c4d53bec 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -490,8 +490,7 @@ EditCaptionBox::EditCaptionBox(QWidget*, HistoryMedia *media, FullMsgId msgId) : } caption = media->getCaption().text; - if ((!_animated && (dimensions.isEmpty() || doc)) || image->isNull()) { - _animated = false; + if (!_animated && (dimensions.isEmpty() || doc || image->isNull())) { if (image->isNull()) { _thumbw = 0; } else {