mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Do not display stories as valid selections when sending view-once media.
This commit is contained in:
committed by
Greyson Parrelli
parent
5c77c33dff
commit
9aa7543f2f
@@ -149,6 +149,10 @@ public final class MultiShareArgs implements Parcelable {
|
||||
}
|
||||
|
||||
public boolean isValidForStories() {
|
||||
if (isViewOnce()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return isTextStory ||
|
||||
(!media.isEmpty() && media.stream().allMatch(m -> MediaUtil.isStorySupportedType(m.getMimeType()))) ||
|
||||
MediaUtil.isStorySupportedType(dataType) ||
|
||||
|
||||
Reference in New Issue
Block a user