urbit/pkg/arvo/sur/chat-view.hoon
Fang 9793dccef0
chat-view: support %groupify
This upgrades an existing, unmanaged village chat into a full-fledged
group plus chat.
2020-03-13 18:15:34 +01:00

24 lines
645 B
Plaintext

/- *rw-security
|%
+$ chat-view-action
$% $: %create
title=@t
description=@t
app-path=path
group-path=path
security=rw-security
members=(set ship)
allow-history=?
==
[%delete app-path=path]
[%join =ship app-path=path ask-history=?]
:: %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.
::
[%groupify app-path=path]
==
--