From 6418eac658e1a2c4d26cab2f72176383f0a8cf6d Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Thu, 1 Apr 2021 10:33:40 -0300 Subject: [PATCH] Prevent crash in forwarding captioned audio message to multiple recipients. --- .../java/org/thoughtcrime/securesms/sharing/MultiShareArgs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/sharing/MultiShareArgs.java b/app/src/main/java/org/thoughtcrime/securesms/sharing/MultiShareArgs.java index a98729188c..2b93900905 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/sharing/MultiShareArgs.java +++ b/app/src/main/java/org/thoughtcrime/securesms/sharing/MultiShareArgs.java @@ -107,7 +107,7 @@ public final class MultiShareArgs implements Parcelable { if (!requiresInterstitial()) { return InterstitialContentType.NONE; } else if (!this.getMedia().isEmpty() || - (this.getDataUri() != null && this.getDataUri() != Uri.EMPTY && this.getDataType() != null)) + (this.getDataUri() != null && this.getDataUri() != Uri.EMPTY && this.getDataType() != null && MediaUtil.isImageOrVideoType(this.getDataType()))) { return InterstitialContentType.MEDIA; } else if (!TextUtils.isEmpty(this.getDraftText())) {