Fix 'Open GIF' context menu item.

Fixes #6908.
This commit is contained in:
John Preston 2019-12-30 13:38:02 +03:00
parent 1e8f4e428a
commit 57b27d217c
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);