Moves the loading of an Accounts backup contacts to the IO Thread

This commit is contained in:
Vitor Pamplona
2023-07-21 11:46:31 -04:00
parent 2c82e6c447
commit 5cdceb5194

View File

@@ -1549,7 +1549,9 @@ class Account(
println("Loading saved contacts ${it.toJson()}") println("Loading saved contacts ${it.toJson()}")
if (userProfile().latestContactList == null) { if (userProfile().latestContactList == null) {
LocalCache.consume(it) GlobalScope.launch(Dispatchers.IO) {
LocalCache.consume(it)
}
} }
} }
} }