mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-04 11:16:14 +00:00
types, notes
This commit is contained in:
@@ -329,7 +329,7 @@ data ChatMsgEvent (e :: MsgEncoding) where
|
||||
XGrpLinkMem :: Profile -> ChatMsgEvent 'Json
|
||||
XGrpLinkAcpt :: GroupAcceptance -> GroupMemberRole -> MemberId -> ChatMsgEvent 'Json
|
||||
XGrpRelayInv :: GroupRelayInvitation -> ChatMsgEvent 'Json
|
||||
XGrpRelayAcpt :: ConnLinkContact -> ChatMsgEvent 'Json -- TBC short/long/any
|
||||
XGrpRelayAcpt :: ConnLinkContact -> ChatMsgEvent 'Json -- TODO [chat relays] TBC short/long/any
|
||||
XGrpRelayReady :: ChatMsgEvent 'Json
|
||||
XGrpMemNew :: MemberInfo -> Maybe MsgScope -> ChatMsgEvent 'Json
|
||||
XGrpMemIntro :: MemberInfo -> Maybe MemberRestrictions -> ChatMsgEvent 'Json
|
||||
@@ -1223,7 +1223,13 @@ data ContactShortLinkData = ContactShortLinkData
|
||||
deriving (Show)
|
||||
|
||||
data GroupShortLinkData = GroupShortLinkData
|
||||
{ groupProfile :: GroupProfile
|
||||
{ groupProfile :: GroupProfile,
|
||||
chatRelays :: [ChatRelayInfo]
|
||||
}
|
||||
deriving (Show)
|
||||
|
||||
data ChatRelayInfo = ChatRelayInfo
|
||||
{ relayLink :: ConnLinkContact
|
||||
}
|
||||
deriving (Show)
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ instance ToField AgentUserId where toField (AgentUserId uId) = toField uId
|
||||
aUserId :: User -> UserId
|
||||
aUserId User {agentUserId = AgentUserId uId} = uId
|
||||
|
||||
-- TODO [chat relay] filter out chat relay users where necessary (e.g. loading list of users for UI)
|
||||
-- TODO [chat relays] filter out chat relay users where necessary (e.g. loading list of users for UI)
|
||||
data User = User
|
||||
{ userId :: UserId,
|
||||
agentUserId :: AgentUserId,
|
||||
|
||||
Reference in New Issue
Block a user