Remove unnecessary suspend modifier from sentToTop() and simplify getNoteIfExists call
This commit is contained in:
+2
-2
@@ -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() })
|
||||
|
||||
Reference in New Issue
Block a user