mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +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
@@ -10,7 +10,6 @@ import androidx.core.content.ContextCompat
|
||||
import androidx.fragment.app.Fragment
|
||||
import org.signal.core.util.logging.Log
|
||||
import org.thoughtcrime.securesms.R
|
||||
import org.thoughtcrime.securesms.color.ViewColorSet
|
||||
import org.thoughtcrime.securesms.components.FragmentWrapperActivity
|
||||
import org.thoughtcrime.securesms.contacts.paged.ContactSearchKey
|
||||
import org.thoughtcrime.securesms.conversation.mutiselect.forward.MultiselectForwardFragment.Companion.RESULT_SELECTION
|
||||
|
||||
@@ -459,7 +459,7 @@ class MultiselectForwardFragment :
|
||||
}
|
||||
|
||||
private fun isSelectedMediaValidForStories(): Boolean {
|
||||
return args.multiShareArgs.all { it.isValidForStories }
|
||||
return !args.isViewOnce && args.multiShareArgs.all { it.isValidForStories }
|
||||
}
|
||||
|
||||
private fun isSelectedMediaValidForNonStories(): Boolean {
|
||||
|
||||
@@ -46,7 +46,8 @@ data class MultiselectForwardFragmentArgs @JvmOverloads constructor(
|
||||
val selectSingleRecipient: Boolean = false,
|
||||
val sendButtonColors: ViewColorSet = ViewColorSet.PRIMARY,
|
||||
val storySendRequirements: Stories.MediaTransform.SendRequirements = Stories.MediaTransform.SendRequirements.CAN_NOT_SEND,
|
||||
val isSearchEnabled: Boolean = true
|
||||
val isSearchEnabled: Boolean = true,
|
||||
val isViewOnce: Boolean = false
|
||||
) : Parcelable {
|
||||
|
||||
fun withSendButtonTint(@ColorInt sendButtonTint: Int) = copy(sendButtonColors = ViewColorSet.forCustomColor(sendButtonTint))
|
||||
|
||||
Reference in New Issue
Block a user