mirror of https://github.com/procxx/kepka.git
Fix sending of video-thumbed GIFs from panel.
This commit is contained in:
parent
f4ed2c26ba
commit
0834920db8
Telegram/SourceFiles/chat_helpers
|
@ -379,15 +379,18 @@ void GifsListWidget::selectInlineResult(int row, int column) {
|
|||
}
|
||||
} else if (const auto document = item->getDocument()) {
|
||||
const auto media = document->activeMediaView();
|
||||
if ((media && media->loaded())
|
||||
const auto preview = Data::VideoPreviewState(media.get());
|
||||
if ((media && preview.loaded())
|
||||
|| QGuiApplication::keyboardModifiers() == Qt::ControlModifier) {
|
||||
_fileChosen.fire_copy(document);
|
||||
} else if (document->loading()) {
|
||||
document->cancel();
|
||||
} else {
|
||||
document->save(
|
||||
document->stickerOrGifOrigin(),
|
||||
QString());
|
||||
} else if (!preview.usingThumbnail()) {
|
||||
if (preview.loading()) {
|
||||
document->cancel();
|
||||
} else {
|
||||
document->save(
|
||||
document->stickerOrGifOrigin(),
|
||||
QString());
|
||||
}
|
||||
}
|
||||
} else if (const auto inlineResult = item->getResult()) {
|
||||
if (inlineResult->onChoose(item)) {
|
||||
|
|
Loading…
Reference in New Issue