mirror of
https://github.com/urbit/shrub.git
synced 2024-11-29 14:57:12 +03:00
chat-hook: emit cards upon upgrade AND store cards to be sent later upon chat-store trigger to support either order of updating
This commit is contained in:
parent
3824402200
commit
e8c95157d4
@ -13,14 +13,12 @@
|
||||
state-1
|
||||
==
|
||||
::
|
||||
+$ state-1 [%1 new-state]
|
||||
+$ state-0 [%0 state-base]
|
||||
+$ new-state
|
||||
$: synced=(map path ship)
|
||||
invite-created=_|
|
||||
allow-history=(map path ?)
|
||||
+$ state-1
|
||||
$: %1
|
||||
loaded-cards=(list card)
|
||||
state-base
|
||||
==
|
||||
+$ state-0 [%0 state-base]
|
||||
+$ state-base
|
||||
$: synced=(map path ship)
|
||||
invite-created=_|
|
||||
@ -79,7 +77,7 @@
|
||||
^- (list (list card))
|
||||
%+ turn ~(tap in keys) generate-cards
|
||||
==
|
||||
[~ this(state upgraded-state)]
|
||||
[loaded-cards.upgraded-state this(state upgraded-state)]
|
||||
::
|
||||
++ generate-cards
|
||||
|= old-chat=path
|
||||
|
@ -2,7 +2,6 @@
|
||||
|%
|
||||
+$ chat-hook-action
|
||||
$% :: %add-owned: make a chatroom accessible to foreign ships
|
||||
:: specified by the rw-security model
|
||||
::
|
||||
[%add-owned =path allow-history=?]
|
||||
:: %add-synced: mirror a foreign chatroom to our chat-store
|
||||
|
Loading…
Reference in New Issue
Block a user