mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 10:00:35 +02:00
Keep Note model refreshes in the Default thread.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user