Using the entire event id to filter threads.
This commit is contained in:
@@ -17,10 +17,12 @@ object NostrThreadDataSource : NostrDataSource("SingleThreadFeed") {
|
|||||||
.toSet()
|
.toSet()
|
||||||
.ifEmpty { null } ?: return null
|
.ifEmpty { null } ?: return null
|
||||||
|
|
||||||
|
if (eventsToLoad.isEmpty()) return null
|
||||||
|
|
||||||
return TypedFilter(
|
return TypedFilter(
|
||||||
types = COMMON_FEED_TYPES,
|
types = COMMON_FEED_TYPES,
|
||||||
filter = JsonFilter(
|
filter = JsonFilter(
|
||||||
ids = eventsToLoad.map { it.substring(0, 8) }
|
ids = eventsToLoad.toList()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user