When clearing cache, also reset some data store in prefs/datastore.

This commit is contained in:
Benoit Marty 2023-07-18 00:18:48 +02:00 committed by Benoit Marty
parent e566bab75d
commit 7207afebcc
10 changed files with 38 additions and 1 deletions

View file

@ -78,6 +78,10 @@ class DefaultAnalyticsService @Inject constructor(
analyticsStore.setDidAskUserConsent()
}
override suspend fun reset() {
analyticsStore.setDidAskUserConsent(false)
}
override fun getAnalyticsId(): Flow<String> {
return analyticsStore.analyticsIdFlow
}