diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp index 523fa6420..dd2328a46 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp @@ -1052,7 +1052,7 @@ void InnerWidget::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { if (const auto item = document->session().data().message(itemId)) { const auto notAutoplayedGif = [&] { return document->isGifv() - && Data::AutoDownload::ShouldAutoPlay( + && !Data::AutoDownload::ShouldAutoPlay( document->session().settings().autoDownload(), item->history()->peer, document); diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 324a3f74c..34679ee57 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -1572,7 +1572,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { const auto notAutoplayedGif = [&] { return item && document->isGifv() - && Data::AutoDownload::ShouldAutoPlay( + && !Data::AutoDownload::ShouldAutoPlay( document->session().settings().autoDownload(), item->history()->peer, document); diff --git a/Telegram/SourceFiles/history/view/history_view_context_menu.cpp b/Telegram/SourceFiles/history/view/history_view_context_menu.cpp index 6ed135f34..ec3da7b81 100644 --- a/Telegram/SourceFiles/history/view/history_view_context_menu.cpp +++ b/Telegram/SourceFiles/history/view/history_view_context_menu.cpp @@ -171,7 +171,7 @@ void AddDocumentActions( if (const auto item = document->session().data().message(contextId)) { const auto notAutoplayedGif = [&] { return document->isGifv() - && Data::AutoDownload::ShouldAutoPlay( + && !Data::AutoDownload::ShouldAutoPlay( document->session().settings().autoDownload(), item->history()->peer, document);