add APIChatRead chat command (#282)

This commit is contained in:
Efim Poberezkin
2022-02-08 17:27:43 +04:00
committed by GitHub
parent b3a4c21c4b
commit b06838b651
4 changed files with 36 additions and 1 deletions
+2
View File
@@ -88,6 +88,7 @@ data ChatCommand
| APIGetChat ChatType Int64 ChatPagination
| APIGetChatItems Int
| APISendMessage ChatType Int64 MsgContent
| APIChatRead ChatType Int64 (ChatItemId, ChatItemId)
| APIDeleteChat ChatType Int64
| APIAcceptContact Int64
| APIRejectContact Int64
@@ -134,6 +135,7 @@ data ChatResponse
| CRChatItemUpdated {chatItem :: AChatItem}
| CRMsgIntegrityError {msgerror :: MsgErrorType} -- TODO make it chat item to support in mobile
| CRCmdAccepted {corr :: CorrId}
| CRCmdOk
| CRChatHelp {helpSection :: HelpSection}
| CRWelcome {user :: User}
| CRGroupCreated {groupInfo :: GroupInfo}