mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 04:48:00 +03:00
chat-hook: append messages to new dm
This commit is contained in:
parent
1578103128
commit
49dc81f7d1
@ -399,10 +399,16 @@
|
|||||||
~
|
~
|
||||||
=/ =ship (slav %p i.t.path)
|
=/ =ship (slav %p i.t.path)
|
||||||
?: =(ship our.bol)
|
?: =(ship our.bol)
|
||||||
|
:: local dm, no need to do cleanup
|
||||||
|
~
|
||||||
|
?: ?=(^ (groups-of-chat path))
|
||||||
|
:: correctly initialized, no need to do cleanup
|
||||||
|
::
|
||||||
~
|
~
|
||||||
:- =- [%pass /fixdm %agent [our.bol %chat-view] %poke %chat-view-action -]
|
:- =- [%pass /fixdm %agent [our.bol %chat-view] %poke %chat-view-action -]
|
||||||
!> ^- action:store
|
!> ^- action:store
|
||||||
[%delete path]
|
[%delete path]
|
||||||
|
=/ new-dm /(scot %p our.bol)/(crip (weld "dm--" (trip (scot %p ship))))
|
||||||
=/ mailbox=(unit mailbox:store) (chat-scry path)
|
=/ mailbox=(unit mailbox:store) (chat-scry path)
|
||||||
?~ mailbox
|
?~ mailbox
|
||||||
~
|
~
|
||||||
@ -412,8 +418,8 @@
|
|||||||
%- crip
|
%- crip
|
||||||
(zing [(trip (scot %p our.bol)) " <-> " (trip (scot %p ship)) ~])
|
(zing [(trip (scot %p our.bol)) " <-> " (trip (scot %p ship)) ~])
|
||||||
''
|
''
|
||||||
/(scot %p our.bol)/(crip (weld "dm--" (trip (scot %p ship))))
|
new-dm
|
||||||
/(scot %p our.bol)/(crip (weld "dm--" (trip (scot %p ship))))
|
new-dm
|
||||||
[%invite (silt ~[ship])]
|
[%invite (silt ~[ship])]
|
||||||
(silt ~[ship])
|
(silt ~[ship])
|
||||||
%.y
|
%.y
|
||||||
@ -422,7 +428,7 @@
|
|||||||
::
|
::
|
||||||
=- [%pass /fixdm %agent [our.bol %chat-store] %poke %chat-action -]
|
=- [%pass /fixdm %agent [our.bol %chat-store] %poke %chat-action -]
|
||||||
!> ^- action:store
|
!> ^- action:store
|
||||||
[%messages envelopes.u.mailbox]
|
[%messages new-dm envelopes.u.mailbox]
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ poke-json
|
++ poke-json
|
||||||
|
Loading…
Reference in New Issue
Block a user