ShareProfile: only share if we arent recipient

This commit is contained in:
Liam Fitzgerald 2021-02-09 13:21:49 +10:00
parent 7dde91c8c9
commit bc5e32491c
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -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);
}
};