Remove unnecessary suspend modifier from sentToTop() and simplify getNoteIfExists call

This commit is contained in:
davotoula
2026-03-03 10:06:32 +00:00
parent 2d42556b03
commit 169416b548
@@ -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() })