Fixes the loading of reactions and zaps to replaceable events.
This commit is contained in:
@@ -22,13 +22,17 @@ object NostrSingleEventDataSource : NostrDataSource("SingleEventFeed") {
|
|||||||
private var addressesToWatch = setOf<Note>()
|
private var addressesToWatch = setOf<Note>()
|
||||||
|
|
||||||
private fun createReactionsToWatchInAddressFilter(): List<TypedFilter>? {
|
private fun createReactionsToWatchInAddressFilter(): List<TypedFilter>? {
|
||||||
val addressesToWatch = eventsToWatch.filter { it.address() != null } + addressesToWatch.filter { it.address() != null }
|
val addressesToWatch =
|
||||||
|
(
|
||||||
|
eventsToWatch.filter { it.address() != null } +
|
||||||
|
addressesToWatch.filter { it.address() != null }
|
||||||
|
).toSet()
|
||||||
|
|
||||||
if (addressesToWatch.isEmpty()) {
|
if (addressesToWatch.isEmpty()) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
return groupByEOSEPresence(eventsToWatch).mapNotNull {
|
return groupByEOSEPresence(addressesToWatch).map {
|
||||||
TypedFilter(
|
TypedFilter(
|
||||||
types = COMMON_FEED_TYPES,
|
types = COMMON_FEED_TYPES,
|
||||||
filter = JsonFilter(
|
filter = JsonFilter(
|
||||||
|
|||||||
Reference in New Issue
Block a user