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

Commit 33b239d3 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Perform QK migration only after realm migration

parent c0b2f619
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
@@ -81,6 +81,8 @@ class QKApplication : Application(), HasActivityInjector, HasBroadcastReceiverIn
                .schemaVersion(QkRealmMigration.SchemaVersion)
                .build())

        qkMigration.performMigration()

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