From 169416b548b5ebf8771316a192267f56d1b8c91e Mon Sep 17 00:00:00 2001 From: davotoula Date: Tue, 3 Mar 2026 10:06:32 +0000 Subject: [PATCH] Remove unnecessary suspend modifier from sentToTop() and simplify getNoteIfExists call --- .../ui/screen/loggedIn/notifications/CardFeedContentState.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt index 6a6b386ed..eb53679fd 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt @@ -92,7 +92,7 @@ class CardFeedContentState( viewModelScope.launch(Dispatchers.IO) { _scrollToTop.emit(_scrollToTop.value + 1) } } - suspend fun sentToTop() { + fun sentToTop() { scrolltoTopPending = false } @@ -212,7 +212,7 @@ class CardFeedContentState( val zapRequest = event.zapRequest if (zapRequest != null) { - val zapRequestNote = LocalCache.getNoteIfExists(zapRequest.id) + val zapRequestNote = getNoteIfExists(zapRequest.id) if (zapRequestNote != null) { zapsPerUser .getOrPut(author, { mutableListOf() })