Prevent crash in forwarding captioned audio message to multiple recipients.

fork-5.53.8
Alex Hart 2021-04-01 10:33:40 -03:00
rodzic d74e9f7410
commit 6418eac658
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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())) {