mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Do not allow forwarding of unsupported content to stories.
This commit is contained in:
@@ -126,6 +126,10 @@ public final class MultiShareArgs implements Parcelable {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public boolean isValidForStories() {
|
||||
return !media.isEmpty() && media.stream().allMatch(m -> MediaUtil.isImageOrVideoType(m.getMimeType()) && !MediaUtil.isGif(m.getMimeType()));
|
||||
}
|
||||
|
||||
public @NonNull InterstitialContentType getInterstitialContentType() {
|
||||
if (!requiresInterstitial()) {
|
||||
return InterstitialContentType.NONE;
|
||||
|
||||
Reference in New Issue
Block a user