core: allow messages with contact requests

This commit is contained in:
Evgeny Poberezkin
2023-04-07 10:15:19 +01:00
parent ccb52e0acd
commit ccff79aa59
5 changed files with 35 additions and 31 deletions
+4 -3
View File
@@ -298,9 +298,9 @@ data ChatCommand
| Welcome
| APIAddContact UserId
| AddContact
| APIConnect UserId (Maybe AConnectionRequestUri)
| Connect (Maybe AConnectionRequestUri)
| ConnectSimplex -- UserId (not used in UI)
| APIConnect UserId (Maybe AConnectionRequestUri) (Maybe MsgContent)
| Connect (Maybe AConnectionRequestUri) (Maybe Text)
| ConnectSimplex (Maybe Text)
| DeleteContact ContactName
| ClearContact ContactName
| APIListContacts UserId
@@ -769,6 +769,7 @@ data ChatErrorType
| CEChatStoreChanged
| CEInvalidConnReq
| CEInvalidChatMessage {message :: String}
| CEConnReqMessageProhibited
| CEContactNotReady {contact :: Contact}
| CEContactDisabled {contact :: Contact}
| CEConnectionDisabled {connection :: Connection}