mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 10:02:32 +03:00
chat-cli: Match store and hook's path handling
Now prefixes the host ship to the path, and parses it back out, only when appropriate.
This commit is contained in:
parent
10b17ff127
commit
9c562f4c62
@ -103,9 +103,7 @@
|
||||
::
|
||||
++ target-to-path
|
||||
|= target
|
||||
path
|
||||
::TODO
|
||||
:: [(scot %p ship) path]
|
||||
[(scot %p ship) path]
|
||||
:: +path-to-target: deduces a target from a mailbox path
|
||||
::
|
||||
++ path-to-target
|
||||
@ -116,7 +114,7 @@
|
||||
[our-self path]
|
||||
=+ who=(slaw %p i.path)
|
||||
?~ who [our-self path]
|
||||
[u.who path]
|
||||
[u.who t.path]
|
||||
:: +poke-noun: debug helpers
|
||||
::
|
||||
++ poke-noun
|
||||
@ -170,7 +168,7 @@
|
||||
|= [=wire upd=chat-update]
|
||||
^- (quip move _this)
|
||||
?+ -.upd [~ this]
|
||||
%create (notice-create (path-to-target path.upd))
|
||||
%create (notice-create +.upd)
|
||||
%delete [[(show-delete:sh-out (path-to-target path.upd)) ~] this]
|
||||
%message (read-envelope (path-to-target path.upd) envelope.upd)
|
||||
==
|
||||
|
Loading…
Reference in New Issue
Block a user