Do not compress stickers.

fork-5.53.8
Greyson Parrelli 2021-02-17 12:33:38 -05:00
rodzic 214cb25d1b
commit afee8631e1
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -160,7 +160,9 @@ public final class AttachmentCompressionJob extends BaseJob {
throws UndeliverableMessageException
{
try {
if (MediaUtil.isVideo(attachment)) {
if (attachment.isSticker()) {
Log.d(TAG, "Sticker, not compressing.");
} else if (MediaUtil.isVideo(attachment)) {
Log.i(TAG, "Compressing video.");
attachment = transcodeVideoIfNeededToDatabase(context, attachmentDatabase, attachment, constraints, EventBus.getDefault(), this::isCanceled);
if (!constraints.isSatisfied(context, attachment)) {