1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-2813 Chats | Tech | Basic pagination (#2343)

This commit is contained in:
Evgenii Kozlov 2025-04-22 11:47:28 +02:00 committed by GitHub
parent fee3daa2ae
commit 98fe9bfe96
Signed by: github
GPG key ID: B5690EEEBB952194
8 changed files with 402 additions and 55 deletions

View file

@ -2777,7 +2777,10 @@ class Middleware @Inject constructor(
@Throws
fun chatGetMessages(command: Command.ChatCommand.GetMessages) : Command.ChatCommand.GetMessages.Response {
val request = Rpc.Chat.GetMessages.Request(
chatObjectId = command.chat
chatObjectId = command.chat,
beforeOrderId = command.beforeOrderId.orEmpty(),
afterOrderId = command.afterOrderId.orEmpty(),
limit = command.limit
)
logRequestIfDebug(request)
val (response, time) = measureTimedValue { service.chatGetMessages(request) }