Cut off of 200 messages for each channel

This commit is contained in:
Vitor Pamplona 2023-02-02 20:16:07 -05:00
parent a82f260142
commit 343521ff58

View File

@ -20,7 +20,7 @@ object NostrChannelDataSource: NostrDataSource<Note>("ChatroomFeed") {
return JsonFilter(
kinds = listOf(ChannelMessageEvent.kind),
tags = mapOf("e" to listOfNotNull(channel?.idHex)),
since = System.currentTimeMillis() / 1000 - (60 * 60 * 24 * 1), // 24 hours
limit = 200
)
}
return null