Migrate blocked conversations to qk blocking manager

This commit is contained in:
moezbhatti
2019-09-08 20:51:12 -04:00
parent 3aba92825b
commit 4c9130e11a
8 changed files with 77 additions and 22 deletions
@@ -40,12 +40,12 @@ class ChangelogManagerImpl @Inject constructor(
private val prefs: Preferences
) : ChangelogManager {
private val oldVersion: Int get() = prefs.version.get()
private val oldVersion: Int get() = prefs.changelogVersion.get()
private val versionCode: Int get() = context.packageManager.getPackageInfo(context.packageName, 0).versionCode
override fun didUpdate(): Boolean {
if (oldVersion == 0) {
prefs.version.set(versionCode)
prefs.changelogVersion.set(versionCode)
}
return when {
@@ -92,7 +92,7 @@ class ChangelogManagerImpl @Inject constructor(
}
override fun markChangelogSeen() {
prefs.version.set(versionCode)
prefs.changelogVersion.set(versionCode)
}
private data class ChangelogResponse(