contact-hook: fix invite to group being sent back to owner upon acceptance

This commit is contained in:
Logan Allen 2020-02-10 14:15:58 -08:00
parent 96cccc7665
commit 2d0e7c76c5

View File

@ -302,8 +302,9 @@
++ add ++ add
|= [ships=(set ship) =path] |= [ships=(set ship) =path]
^- (quip card _state) ^- (quip card _state)
?. (~(has by synced) path) =/ owner (~(get by synced) path)
[~ state] ?~ owner [~ state]
?. =(u.owner our.bol) [~ state]
:_ state :_ state
%+ turn ~(tap in (~(del in ships) our.bol)) %+ turn ~(tap in (~(del in ships) our.bol))
|= =ship |= =ship