mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +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)
|
=/ =share !<(share vase)
|
||||||
:_ this :_ ~
|
:_ this :_ ~
|
||||||
?: =(our.bowl src.bowl)
|
?: =(our.bowl src.bowl)
|
||||||
|
?< =(ship.share our.bowl)
|
||||||
:: proxy poke
|
:: proxy poke
|
||||||
%+ poke:pass:io [ship.share dap.bowl]
|
%+ poke:pass:io [ship.share dap.bowl]
|
||||||
contact-share+!>([%share our.bowl])
|
contact-share+!>([%share our.bowl])
|
||||||
|
@ -101,7 +101,9 @@ export const ShareProfile = (props) => {
|
|||||||
} else if (!group.hidden) {
|
} else if (!group.hidden) {
|
||||||
const [,,ship,name] = groupPath.split('/');
|
const [,,ship,name] = groupPath.split('/');
|
||||||
await api.contacts.allowGroup(ship,name);
|
await api.contacts.allowGroup(ship,name);
|
||||||
await api.contacts.share(ship);
|
if(ship !== `~${window.ship}`) {
|
||||||
|
await api.contacts.share(ship);
|
||||||
|
}
|
||||||
setShowBanner(false);
|
setShowBanner(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user