mirror of https://github.com/procxx/kepka.git
parent
1e8f4e428a
commit
57b27d217c
|
@ -1052,7 +1052,7 @@ void InnerWidget::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
||||||
if (const auto item = document->session().data().message(itemId)) {
|
if (const auto item = document->session().data().message(itemId)) {
|
||||||
const auto notAutoplayedGif = [&] {
|
const auto notAutoplayedGif = [&] {
|
||||||
return document->isGifv()
|
return document->isGifv()
|
||||||
&& Data::AutoDownload::ShouldAutoPlay(
|
&& !Data::AutoDownload::ShouldAutoPlay(
|
||||||
document->session().settings().autoDownload(),
|
document->session().settings().autoDownload(),
|
||||||
item->history()->peer,
|
item->history()->peer,
|
||||||
document);
|
document);
|
||||||
|
|
|
@ -1572,7 +1572,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
||||||
const auto notAutoplayedGif = [&] {
|
const auto notAutoplayedGif = [&] {
|
||||||
return item
|
return item
|
||||||
&& document->isGifv()
|
&& document->isGifv()
|
||||||
&& Data::AutoDownload::ShouldAutoPlay(
|
&& !Data::AutoDownload::ShouldAutoPlay(
|
||||||
document->session().settings().autoDownload(),
|
document->session().settings().autoDownload(),
|
||||||
item->history()->peer,
|
item->history()->peer,
|
||||||
document);
|
document);
|
||||||
|
|
|
@ -171,7 +171,7 @@ void AddDocumentActions(
|
||||||
if (const auto item = document->session().data().message(contextId)) {
|
if (const auto item = document->session().data().message(contextId)) {
|
||||||
const auto notAutoplayedGif = [&] {
|
const auto notAutoplayedGif = [&] {
|
||||||
return document->isGifv()
|
return document->isGifv()
|
||||||
&& Data::AutoDownload::ShouldAutoPlay(
|
&& !Data::AutoDownload::ShouldAutoPlay(
|
||||||
document->session().settings().autoDownload(),
|
document->session().settings().autoDownload(),
|
||||||
item->history()->peer,
|
item->history()->peer,
|
||||||
document);
|
document);
|
||||||
|
|
Loading…
Reference in New Issue