mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 22:46:22 +02:00
Moves the loading of an Accounts backup contacts to the IO Thread
This commit is contained in:
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user