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:
parent
fee3daa2ae
commit
98fe9bfe96
8 changed files with 402 additions and 55 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue