mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Implement Story onboarding download job and message insertion.
This commit is contained in:
committed by
Greyson Parrelli
parent
2270dfaf21
commit
36ccf9ca54
@@ -8,6 +8,7 @@ import androidx.annotation.WorkerThread
|
||||
import org.signal.core.util.logging.Log
|
||||
import org.thoughtcrime.securesms.database.SignalDatabase
|
||||
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies
|
||||
import org.thoughtcrime.securesms.keyvalue.SignalStore
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
/**
|
||||
@@ -43,7 +44,7 @@ class ExpiringStoriesManager(
|
||||
@WorkerThread
|
||||
override fun executeEvent(event: Event) {
|
||||
val threshold = System.currentTimeMillis() - STORY_LIFESPAN
|
||||
val deletes = mmsDatabase.deleteStoriesOlderThan(threshold)
|
||||
val deletes = mmsDatabase.deleteStoriesOlderThan(threshold, SignalStore.storyValues().userHasSeenOnboardingStory)
|
||||
Log.i(TAG, "Deleted $deletes stories before $threshold")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user