Fix sms megaphone bug.

This commit is contained in:
Cody Henthorne
2022-10-31 10:40:35 -04:00
parent 9f2c7a65ac
commit b781de2c17
3 changed files with 6 additions and 2 deletions

View File

@@ -36,6 +36,10 @@ class SmsExportReminderSchedule(private val context: Context) : MegaphoneSchedul
@Suppress("UsePropertyAccessSyntax")
@WorkerThread
fun shouldShowMegaphone(): Boolean {
if (!Stories.isFeatureFlagEnabled()) {
return false
}
return if (Stories.isFeatureFlagEnabled() && SignalStore.misc().storiesFeatureAvailableTimestamp == 0L) {
SignalStore.misc().storiesFeatureAvailableTimestamp = System.currentTimeMillis()
false