Loads the last 50 messages per following chat.

This commit is contained in:
Vitor Pamplona 2023-07-06 21:02:47 -04:00
parent 8fd5176e22
commit 4406532994
2 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,6 @@ import com.vitorpamplona.amethyst.service.NostrUserProfileDataSource
import com.vitorpamplona.amethyst.service.NostrVideoDataSource
import com.vitorpamplona.amethyst.service.relays.Client
import com.vitorpamplona.amethyst.ui.actions.ImageUploader
import com.vitorpamplona.amethyst.ui.screen.NostrCommunityFeedViewModel
object ServiceManager {
private var account: Account? = null

View File

@ -74,7 +74,7 @@ object NostrChatroomListDataSource : NostrDataSource("MailBoxFeed") {
kinds = listOf(ChannelMessageEvent.kind),
tags = mapOf("e" to listOf(it)),
since = latestEOSEs.users[account.userProfile()]?.followList?.get(chatRoomList)?.relayList,
limit = 25 // Remember to consider spam that is being removed from the UI
limit = 50 // Remember to consider spam that is being removed from the UI
)
)
}