urbit/pkg/arvo/sur/chat-hook.hoon

24 lines
783 B
Plaintext
Raw Normal View History

|%
+$ chat-security
$? $channel :: black r, black w
$village :: white r, white w
$journal :: black r, white w
$mailbox :: white r, black w
==
::
+$ chat-hook-action
$% :: %add-owned: make a chatroom accessible to foreign ships
:: specified by the chat-security model
::
[%add-owned =path security=chat-security]
:: %add-synced: mirror a foreign chatroom to our chat-store
::
[%add-synced =ship =path]
:: %remove: stop mirroring a foreign chatroom or allowing a local
:: chatroom to be mirrored
::
[%remove =path]
==
--