mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 06:25:14 +01:00
Raise gif maximum size to align with telegram desktop
It seems that the maximum gif size on telegram desktop is 1440px. Larger than that, and it displays as a video. On iOS there is no limit to resolution, with video files up to 5000px still displaying as a gif provided there's no audio track. This change would bring the android app into line with telegram desktop, but I'm not sure whether we could scrap the resolution check, and be more inline with the iOS app?
This commit is contained in:
parent
19599e6ea4
commit
f6ced6e8d5
1 changed files with 1 additions and 1 deletions
|
@ -2902,7 +2902,7 @@ public class MessageObject {
|
|||
height = attribute.h;
|
||||
}
|
||||
}
|
||||
if (animated && width <= 1280 && height <= 1280) {
|
||||
if (animated && width <= 1440 && height <= 1440) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue