mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 14:42:02 +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
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
+$ state-1 [%1 new-state]
|
+$ state-1
|
||||||
+$ state-0 [%0 state-base]
|
$: %1
|
||||||
+$ new-state
|
|
||||||
$: synced=(map path ship)
|
|
||||||
invite-created=_|
|
|
||||||
allow-history=(map path ?)
|
|
||||||
loaded-cards=(list card)
|
loaded-cards=(list card)
|
||||||
|
state-base
|
||||||
==
|
==
|
||||||
|
+$ state-0 [%0 state-base]
|
||||||
+$ state-base
|
+$ state-base
|
||||||
$: synced=(map path ship)
|
$: synced=(map path ship)
|
||||||
invite-created=_|
|
invite-created=_|
|
||||||
@ -79,7 +77,7 @@
|
|||||||
^- (list (list card))
|
^- (list (list card))
|
||||||
%+ turn ~(tap in keys) generate-cards
|
%+ turn ~(tap in keys) generate-cards
|
||||||
==
|
==
|
||||||
[~ this(state upgraded-state)]
|
[loaded-cards.upgraded-state this(state upgraded-state)]
|
||||||
::
|
::
|
||||||
++ generate-cards
|
++ generate-cards
|
||||||
|= old-chat=path
|
|= old-chat=path
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|%
|
|%
|
||||||
+$ chat-hook-action
|
+$ chat-hook-action
|
||||||
$% :: %add-owned: make a chatroom accessible to foreign ships
|
$% :: %add-owned: make a chatroom accessible to foreign ships
|
||||||
:: specified by the rw-security model
|
|
||||||
::
|
::
|
||||||
[%add-owned =path allow-history=?]
|
[%add-owned =path allow-history=?]
|
||||||
:: %add-synced: mirror a foreign chatroom to our chat-store
|
:: %add-synced: mirror a foreign chatroom to our chat-store
|
||||||
|
Loading…
Reference in New Issue
Block a user