mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Send ImageSize instead of Video for image/gif.
This commit is contained in:
parent
bf182697b9
commit
9ec3d24fec
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ MTPVector<MTPDocumentAttribute> ComposeSendingDocumentAttributes(
|
||||||
auto attributes = QVector<MTPDocumentAttribute>(1, filenameAttribute);
|
auto attributes = QVector<MTPDocumentAttribute>(1, filenameAttribute);
|
||||||
if (dimensions.width() > 0 && dimensions.height() > 0) {
|
if (dimensions.width() > 0 && dimensions.height() > 0) {
|
||||||
const auto duration = document->getDuration();
|
const auto duration = document->getDuration();
|
||||||
if (duration >= 0) {
|
if (duration >= 0 && !document->hasMimeType(qstr("image/gif"))) {
|
||||||
auto flags = MTPDdocumentAttributeVideo::Flags(0);
|
auto flags = MTPDdocumentAttributeVideo::Flags(0);
|
||||||
if (document->isVideoMessage()) {
|
if (document->isVideoMessage()) {
|
||||||
flags |= MTPDdocumentAttributeVideo::Flag::f_round_message;
|
flags |= MTPDdocumentAttributeVideo::Flag::f_round_message;
|
||||||
|
|
Loading…
Add table
Reference in a new issue