mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-06-28 18:40:53 +02:00
Fixing the bug that wasn't showing likes
This commit is contained in:
parent
ab0bab0c16
commit
0017845de2
@ -12,7 +12,7 @@ object NostrSingleEventDataSource: NostrDataSource<Note>("SingleEventFeed") {
|
|||||||
private var eventsToWatch = setOf<String>()
|
private var eventsToWatch = setOf<String>()
|
||||||
|
|
||||||
private fun createRepliesAndReactionsFilter(): JsonFilter? {
|
private fun createRepliesAndReactionsFilter(): JsonFilter? {
|
||||||
val reactionsToWatch = eventsToWatch.map { it.substring(0, 8) }
|
val reactionsToWatch = eventsToWatch.map { it }
|
||||||
|
|
||||||
if (reactionsToWatch.isEmpty()) {
|
if (reactionsToWatch.isEmpty()) {
|
||||||
return null
|
return null
|
||||||
@ -38,7 +38,7 @@ object NostrSingleEventDataSource: NostrDataSource<Note>("SingleEventFeed") {
|
|||||||
|
|
||||||
val interestedEvents =
|
val interestedEvents =
|
||||||
(directEventsToLoad + threadingEventsToLoad)
|
(directEventsToLoad + threadingEventsToLoad)
|
||||||
.map { it.idHex.substring(0, 8) }
|
.map { it.idHex }
|
||||||
|
|
||||||
if (interestedEvents.isEmpty()) {
|
if (interestedEvents.isEmpty()) {
|
||||||
return null
|
return null
|
||||||
|
@ -12,7 +12,7 @@ object NostrThreadDataSource: NostrDataSource<Note>("SingleThreadFeed") {
|
|||||||
val eventsToWatch = Collections.synchronizedList(mutableListOf<String>())
|
val eventsToWatch = Collections.synchronizedList(mutableListOf<String>())
|
||||||
|
|
||||||
fun createRepliesAndReactionsFilter(): JsonFilter? {
|
fun createRepliesAndReactionsFilter(): JsonFilter? {
|
||||||
val reactionsToWatch = eventsToWatch.map { it.substring(0, 8) }
|
val reactionsToWatch = eventsToWatch.map { it }
|
||||||
|
|
||||||
if (reactionsToWatch.isEmpty()) {
|
if (reactionsToWatch.isEmpty()) {
|
||||||
return null
|
return null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user