Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84d9c7dd authored by Moez Bhatti's avatar Moez Bhatti Committed by Dayona Joseph
Browse files

Perform QK migration only after realm migration

parent 0f7fd502
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -28,13 +28,13 @@ import kotlinx.coroutines.launch
import javax.inject.Inject

class QkMigration @Inject constructor(
    context: Context,
    private val context: Context,
    private val conversationRepo: ConversationRepository,
    private val prefs: Preferences,
    private val qksmsBlockingClient: QksmsBlockingClient
) {

    init {
    fun performMigration() {
        GlobalScope.launch {
            val oldVersion = prefs.version.get()

+2 −0
Original line number Diff line number Diff line
@@ -82,6 +82,8 @@ class QKApplication : Application(), HasActivityInjector, HasBroadcastReceiverIn
                .schemaVersion(QkRealmMigration.SchemaVersion)
                .build())

        qkMigration.performMigration()

        GlobalScope.launch(Dispatchers.IO) {
            referralManager.trackReferrer()
        }