mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
Merge pull request #4400 from urbit/lf/con-hook-loop
contact-hooks: prevent infinite hook loop
This commit is contained in:
commit
ac026ea370
@ -46,6 +46,7 @@
|
||||
=/ =share !<(share vase)
|
||||
:_ this :_ ~
|
||||
?: =(our.bowl src.bowl)
|
||||
?< =(ship.share our.bowl)
|
||||
:: proxy poke
|
||||
%+ poke:pass:io [ship.share dap.bowl]
|
||||
contact-share+!>([%share our.bowl])
|
||||
|
@ -101,7 +101,9 @@ export const ShareProfile = (props) => {
|
||||
} else if (!group.hidden) {
|
||||
const [,,ship,name] = groupPath.split('/');
|
||||
await api.contacts.allowGroup(ship,name);
|
||||
await api.contacts.share(ship);
|
||||
if(ship !== `~${window.ship}`) {
|
||||
await api.contacts.share(ship);
|
||||
}
|
||||
setShowBanner(false);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user