mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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);
|
||||
if (dimensions.width() > 0 && dimensions.height() > 0) {
|
||||
const auto duration = document->getDuration();
|
||||
if (duration >= 0) {
|
||||
if (duration >= 0 && !document->hasMimeType(qstr("image/gif"))) {
|
||||
auto flags = MTPDdocumentAttributeVideo::Flags(0);
|
||||
if (document->isVideoMessage()) {
|
||||
flags |= MTPDdocumentAttributeVideo::Flag::f_round_message;
|
||||
|
|
Loading…
Add table
Reference in a new issue