mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 15:38:45 +03:00
chat-hook: fix infinite loop from reconnecting to own dm
This commit is contained in:
parent
2c0ddfa960
commit
a968bb004b
@ -92,6 +92,17 @@
|
|||||||
?: ?=(%10 -.old)
|
?: ?=(%10 -.old)
|
||||||
[cards this(state old)]
|
[cards this(state old)]
|
||||||
?: ?=(%9 -.old)
|
?: ?=(%9 -.old)
|
||||||
|
=. cards
|
||||||
|
%+ weld cards
|
||||||
|
^- (list card)
|
||||||
|
%+ roll ~(tap in ~(key by wex.bol))
|
||||||
|
|= [[=wire =ship =term] out=(list card)]
|
||||||
|
?> ?=([@ *] wire)
|
||||||
|
?. ?&(=(ship our.bol) =(term %chat-hook))
|
||||||
|
out
|
||||||
|
:_ out
|
||||||
|
=- [%pass / %agent [our.bol %chat-hook] %poke %chat-hook-action !>(-)]
|
||||||
|
[%remove t.wire]
|
||||||
=/ chat-keys=(set path) (scry-for (set path) %chat-store [%keys ~])
|
=/ chat-keys=(set path) (scry-for (set path) %chat-store [%keys ~])
|
||||||
=. cards
|
=. cards
|
||||||
%+ weld cards
|
%+ weld cards
|
||||||
|
Loading…
Reference in New Issue
Block a user