mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-26 05:58:09 +00:00
Inline the stories flag.
This commit is contained in:
committed by
Cody Henthorne
parent
b55954380d
commit
2b685ea89f
@@ -19,7 +19,6 @@ import org.thoughtcrime.securesms.database.model.StoryType
|
||||
import org.thoughtcrime.securesms.mms.IncomingMediaMessage
|
||||
import org.thoughtcrime.securesms.recipients.Recipient
|
||||
import org.thoughtcrime.securesms.testing.TestProtos
|
||||
import org.thoughtcrime.securesms.util.FeatureFlagsTestUtil
|
||||
import org.whispersystems.signalservice.api.messages.SignalServiceContent
|
||||
import org.whispersystems.signalservice.api.push.DistributionId
|
||||
import org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage
|
||||
@@ -31,7 +30,6 @@ class MessageContentProcessor__handleStoryMessageTest : MessageContentProcessorT
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
FeatureFlagsTestUtil.setStoriesEnabled(true)
|
||||
SignalDatabase.mms.deleteAllThreads()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
package org.thoughtcrime.securesms.util
|
||||
|
||||
/**
|
||||
* Utility to enable / disable feature flags via forced values.
|
||||
*/
|
||||
object FeatureFlagsTestUtil {
|
||||
fun setStoriesEnabled(isEnabled: Boolean) {
|
||||
FeatureFlags.FORCED_VALUES[FeatureFlags.STORIES] = isEnabled
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user