mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
ShareProfile: only share if we arent recipient
This commit is contained in:
parent
7dde91c8c9
commit
bc5e32491c
@ -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