mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01: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…
x
Reference in New Issue
Block a user