mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix sending of video-thumbed GIFs from panel.
This commit is contained in:
parent
f4ed2c26ba
commit
0834920db8
1 changed files with 10 additions and 7 deletions
|
@ -379,15 +379,18 @@ void GifsListWidget::selectInlineResult(int row, int column) {
|
||||||
}
|
}
|
||||||
} else if (const auto document = item->getDocument()) {
|
} else if (const auto document = item->getDocument()) {
|
||||||
const auto media = document->activeMediaView();
|
const auto media = document->activeMediaView();
|
||||||
if ((media && media->loaded())
|
const auto preview = Data::VideoPreviewState(media.get());
|
||||||
|
if ((media && preview.loaded())
|
||||||
|| QGuiApplication::keyboardModifiers() == Qt::ControlModifier) {
|
|| QGuiApplication::keyboardModifiers() == Qt::ControlModifier) {
|
||||||
_fileChosen.fire_copy(document);
|
_fileChosen.fire_copy(document);
|
||||||
} else if (document->loading()) {
|
} else if (!preview.usingThumbnail()) {
|
||||||
document->cancel();
|
if (preview.loading()) {
|
||||||
} else {
|
document->cancel();
|
||||||
document->save(
|
} else {
|
||||||
document->stickerOrGifOrigin(),
|
document->save(
|
||||||
QString());
|
document->stickerOrGifOrigin(),
|
||||||
|
QString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (const auto inlineResult = item->getResult()) {
|
} else if (const auto inlineResult = item->getResult()) {
|
||||||
if (inlineResult->onChoose(item)) {
|
if (inlineResult->onChoose(item)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue