1
1
mirror of https://github.com/urbit/shrub.git synced 2024-12-29 23:23:52 +03:00
shrub/pkg/arvo/sur/chat-view.hoon

33 lines
1012 B
Plaintext
Raw Normal View History

2020-05-25 08:52:54 +03:00
/- *group
^?
|%
+$ action
2020-03-18 23:40:14 +03:00
$% :: %create: create a new chat
::
$: %create
title=@t
description=@t
app-path=path
group-path=path
2020-05-25 08:52:54 +03:00
=policy
members=(set ship)
allow-history=?
managed=?
==
[%delete app-path=path]
[%join =ship app-path=path ask-history=?]
[%invite app-path=path ships=(set ship)]
:: %groupify: for unmanaged %village chats: recreate as group-based chat
::
:: will delete the old chat, recreate it based on a proper group,
:: and invite the current whitelist to that group.
:: existing messages get moved over.
::
:: if :existing is provided, associates chat with that group instead
:: of creating a new one. :inclusive indicates whether or not to add
:: chat members to the group, if they aren't there already.
::
[%groupify app-path=path existing=(unit [group-path=path inclusive=?])]
==
--