delete contact api (#243)

* delete contact api

* chat command
This commit is contained in:
Efim Poberezkin
2022-01-31 15:14:56 +04:00
committed by GitHub
parent 945ed3f7cb
commit 047aa7deef
4 changed files with 40 additions and 48 deletions
+3 -2
View File
@@ -82,6 +82,7 @@ data ChatCommand
| APIGetChat ChatType Int64
| APIGetChatItems Int
| APISendMessage ChatType Int64 MsgContent
| APIDeleteContact Int64
| ChatHelp HelpSection
| Welcome
| AddContact
@@ -141,7 +142,7 @@ data ChatResponse
| CRSentInvitation
| CRContactUpdated {fromContact :: Contact, toContact :: Contact}
| CRContactsMerged {intoContact :: Contact, mergedContact :: Contact}
| CRContactDeleted {contactName :: ContactName} -- TODO
| CRContactDeleted {contact :: Contact}
| CRUserContactLinkCreated {connReqContact :: ConnReqContact}
| CRUserContactLinkDeleted
| CRReceivedContactRequest {contactName :: ContactName, profile :: Profile} -- TODO what is the entity here?
@@ -207,7 +208,7 @@ instance ToJSON ChatError where
data ChatErrorType
= CEGroupUserRole
| CEInvalidConnReq
| CEContactGroups {contactName :: ContactName, groupNames :: [GroupName]}
| CEContactGroups {contact :: Contact, groupNames :: [GroupName]}
| CEGroupContactRole {contactName :: ContactName}
| CEGroupDuplicateMember {contactName :: ContactName}
| CEGroupDuplicateMemberId