mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 12:46:49 +02:00
Moves the loading of an Accounts backup contacts to the IO Thread
This commit is contained in:
@@ -1549,10 +1549,12 @@ class Account(
|
||||
println("Loading saved contacts ${it.toJson()}")
|
||||
|
||||
if (userProfile().latestContactList == null) {
|
||||
GlobalScope.launch(Dispatchers.IO) {
|
||||
LocalCache.consume(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class AccountLiveData(private val account: Account) : LiveData<AccountState>(AccountState(account)) {
|
||||
|
Reference in New Issue
Block a user