Fix bad flag parsing on attachment pointers.

This commit is contained in:
Alex Hart
2021-04-22 14:46:20 -03:00
committed by GitHub
parent a4868602b5
commit bf124b87fa
8 changed files with 86 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ import android.net.Uri;
import androidx.annotation.Nullable;
import org.thoughtcrime.securesms.attachments.Attachment;
import org.thoughtcrime.securesms.util.FeatureFlags;
import org.thoughtcrime.securesms.util.MediaUtil;
public class GifSlide extends ImageSlide {
@@ -22,7 +23,23 @@ public class GifSlide extends ImageSlide {
}
public GifSlide(Context context, Uri uri, long size, int width, int height, boolean borderless, @Nullable String caption) {
super(context, constructAttachmentFromUri(context, uri, MediaUtil.IMAGE_GIF, size, width, height, true, null, caption, null, null, null, false, borderless, true, false));
super(context, constructAttachmentFromUri(context,
uri,
MediaUtil.IMAGE_GIF,
size,
width,
height,
true,
null,
caption,
null,
null,
null,
false,
borderless,
FeatureFlags.mp4GifSendSupport(),
false));
this.borderless = borderless;
}