mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 10:43:05 +00:00
refine definition of Subscribe to prevent subscription in None and Disabled states
This commit is contained in:
1 parent
7520c681da
commit
f3f39e760a
1 file changed
+9
-1
@@ -134,7 +134,15 @@ data Command res (from :: Participant) (to :: Participant) state state' :: Type
|
||||
('None <==> 'None <==| s)
|
||||
('New <==> 'New <==| s)
|
||||
|
||||
Subscribe :: Command () 'Recipient 'Broker state state -- TODO
|
||||
Subscribe :: ( (r == 'None) ~ 'False
|
||||
, (r == 'Disabled) ~ 'False
|
||||
, (b == 'None) ~ 'False
|
||||
, (b == 'Disabled) ~ 'False
|
||||
, Prf HasState 'Sender s )
|
||||
=> Command ()
|
||||
'Recipient 'Broker
|
||||
(r <==> b <==| s)
|
||||
(r <==> b <==| s)
|
||||
|
||||
SendInvite :: Prf HasState 'Broker s
|
||||
=> String -- invitation - TODO
|
||||
|
||||
Reference in new issue
Block a user