core: group link connection request uri data; automatically join groups over group links (#1275)

This commit is contained in:
JRoberts
2022-11-03 14:46:36 +04:00
committed by GitHub
parent 83599adc80
commit 5243613045
11 changed files with 198 additions and 180 deletions
+2 -2
View File
@@ -391,10 +391,10 @@ instance ToJSON MsgContent where
MCFile t -> J.pairs $ "type" .= MCFile_ <> "text" .= t
instance ToField MsgContent where
toField = toField . safeDecodeUtf8 . LB.toStrict . J.encode
toField = toField . encodeJson
instance FromField MsgContent where
fromField = fromTextField_ $ J.decode . LB.fromStrict . encodeUtf8
fromField = fromTextField_ decodeJson
data CMEventTag (e :: MsgEncoding) where
XMsgNew_ :: CMEventTag 'Json