Keep Note model refreshes in the Default thread.

This commit is contained in:
Vitor Pamplona 2023-01-30 23:39:09 -03:00
parent b7bc8a0b9d
commit 7837860ac6

View File

@ -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 {