mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-06 18:53:40 +02:00
Makes sure the list is not empty before building the filter
This commit is contained in:
@@ -81,6 +81,7 @@ fun filterRepliesAndReactionsToNotes(
|
||||
val since = since?.get(it.key)?.time
|
||||
val sortedList = it.value.sorted()
|
||||
val relay = it.key
|
||||
if (sortedList.isNotEmpty()) {
|
||||
listOf(
|
||||
RelayBasedFilter(
|
||||
relay = relay,
|
||||
@@ -114,5 +115,8 @@ fun filterRepliesAndReactionsToNotes(
|
||||
),
|
||||
),
|
||||
)
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user