mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-29 16:30:49 +00:00
Keep Note model refreshes in the Default thread.
This commit is contained in:
parent
b7bc8a0b9d
commit
7837860ac6
@ -225,7 +225,7 @@ class User(val pubkey: ByteArray) {
|
||||
if (modelHandlerWaiting) return
|
||||
|
||||
modelHandlerWaiting = true
|
||||
val scope = CoroutineScope(Job() + Dispatchers.Main)
|
||||
val scope = CoroutineScope(Job() + Dispatchers.Default)
|
||||
scope.launch {
|
||||
delay(100)
|
||||
listeners.forEach {
|
||||
|
Loading…
Reference in New Issue
Block a user