From 8022ac525f934a0b9bf423d114929b9aabd56e3c Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 14 Feb 2025 16:29:10 -0500 Subject: [PATCH] Makes sure deletions happen in the background thread. --- .../com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt index ac3fa4b89..dc8af5447 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt @@ -576,7 +576,7 @@ open class NewPostViewModel : ViewModel() { } fun sendDraft(relayList: List) { - viewModelScope.launch { + viewModelScope.launch(Dispatchers.IO) { sendDraftSync(relayList) } }