Prevent crash in forwarding captioned audio message to multiple recipients.

This commit is contained in:
Alex Hart 2021-04-01 10:33:40 -03:00
parent d74e9f7410
commit 6418eac658

View file

@ -107,7 +107,7 @@ public final class MultiShareArgs implements Parcelable {
if (!requiresInterstitial()) { if (!requiresInterstitial()) {
return InterstitialContentType.NONE; return InterstitialContentType.NONE;
} else if (!this.getMedia().isEmpty() || } 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; return InterstitialContentType.MEDIA;
} else if (!TextUtils.isEmpty(this.getDraftText())) { } else if (!TextUtils.isEmpty(this.getDraftText())) {