mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 09:46: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
|
if (modelHandlerWaiting) return
|
||||||
|
|
||||||
modelHandlerWaiting = true
|
modelHandlerWaiting = true
|
||||||
val scope = CoroutineScope(Job() + Dispatchers.Main)
|
val scope = CoroutineScope(Job() + Dispatchers.Default)
|
||||||
scope.launch {
|
scope.launch {
|
||||||
delay(100)
|
delay(100)
|
||||||
listeners.forEach {
|
listeners.forEach {
|
||||||
|
Reference in New Issue
Block a user