From f536f8e88eab124960d0e86a27b1be61741c3d1e Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 28 Aug 2025 10:32:16 -0400 Subject: [PATCH] Fixes readonly crash on DVMs --- .../amethyst/ui/screen/loggedIn/AccountViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt index 3e7c758de..100ef3ca7 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt @@ -1485,7 +1485,7 @@ class AccountViewModel( dvmPublicKey: User, onReady: (event: Note) -> Unit, ) { - viewModelScope.launch(Dispatchers.IO) { + runIOCatching { account.requestDVMContentDiscovery(dvmPublicKey) { onReady(LocalCache.getOrCreateNote(it.id)) }