Merge pull request #4566 from urbit/lf/group-invites

Invites: accept already joined group
This commit is contained in:
matildepark 2021-03-08 21:32:26 -05:00 committed by GitHub
commit f1dc011aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,10 @@ export function InviteItem(props: InviteItemProps) {
if (!(app && invite && uid)) {
return;
}
if(resource in props.groups) {
await api.invite.decline(app, uid);
return;
}
api.groups.join(ship, name);
await waiter(p => resource in p.pendingJoin);