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

pull/518/head
Vitor Pamplona 2023-07-21 11:46:31 -04:00
rodzic 2c82e6c447
commit 5cdceb5194
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

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