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

DROID-3044 Chats | Enhancement | Basics for chat replies (#1854)

This commit is contained in:
Evgenii Kozlov 2024-11-30 16:22:03 +01:00 committed by GitHub
parent 81394a3589
commit 3994d456d5
Signed by: github
GPG key ID: B5690EEEBB952194
18 changed files with 352 additions and 43 deletions

View file

@ -1067,6 +1067,10 @@ class BlockDataRepository(
return remote.getChatMessages(command)
}
override suspend fun getChatMessagesByIds(command: Command.ChatCommand.GetMessagesByIds): List<Chat.Message> {
return remote.getChatMessagesByIds(command)
}
override suspend fun subscribeLastChatMessages(
command: Command.ChatCommand.SubscribeLastMessages
): Command.ChatCommand.SubscribeLastMessages.Response {

View file

@ -452,6 +452,7 @@ interface BlockRemote {
suspend fun editChatMessage(command: Command.ChatCommand.EditMessage)
suspend fun deleteChatMessage(command: Command.ChatCommand.DeleteMessage)
suspend fun getChatMessages(command: Command.ChatCommand.GetMessages): List<Chat.Message>
suspend fun getChatMessagesByIds(command: Command.ChatCommand.GetMessagesByIds): List<Chat.Message>
suspend fun subscribeLastChatMessages(command: Command.ChatCommand.SubscribeLastMessages): Command.ChatCommand.SubscribeLastMessages.Response
suspend fun toggleChatMessageReaction(command: Command.ChatCommand.ToggleMessageReaction)
suspend fun unsubscribeChat(chat: Id)