mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-25 02:05:40 +00:00
fix constructor name for JSON encoding (#248)
This commit is contained in:
committed by
GitHub
parent
2295f7a92b
commit
0b86402ce3
@@ -53,7 +53,7 @@ deriving instance Show (ChatInfo c)
|
||||
data JSONChatInfo
|
||||
= JCInfoDirect {contact :: Contact}
|
||||
| JCInfoGroup {groupInfo :: GroupInfo}
|
||||
| JCIInfoContactRequest {contactRequest :: UserContactRequest}
|
||||
| JCInfoContactRequest {contactRequest :: UserContactRequest}
|
||||
deriving (Generic)
|
||||
|
||||
instance ToJSON JSONChatInfo where
|
||||
@@ -68,7 +68,7 @@ jsonChatInfo :: ChatInfo c -> JSONChatInfo
|
||||
jsonChatInfo = \case
|
||||
DirectChat c -> JCInfoDirect c
|
||||
GroupChat g -> JCInfoGroup g
|
||||
ContactRequest g -> JCIInfoContactRequest g
|
||||
ContactRequest g -> JCInfoContactRequest g
|
||||
|
||||
data ChatItem (c :: ChatType) (d :: MsgDirection) = ChatItem
|
||||
{ chatDir :: CIDirection c d,
|
||||
|
||||
Reference in New Issue
Block a user