mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
parent
ed8ec1085a
commit
35a1fe12bc
@ -286,8 +286,15 @@ function Participant(props: {
|
||||
|
||||
const onKick = useCallback(async () => {
|
||||
const resource = resourceFromPath(association.group);
|
||||
if(contact.pending) {
|
||||
await api.groups.changePolicy(
|
||||
resource,
|
||||
{ invite: { removeInvites: [`~${contact.patp}`] } }
|
||||
);
|
||||
} else {
|
||||
await api.groups.remove(resource, [`~${contact.patp}`]);
|
||||
}, [api, association]);
|
||||
}
|
||||
}, [api, contact, association]);
|
||||
|
||||
const avatar =
|
||||
contact?.avatar !== null && !hideAvatars ? (
|
||||
|
Loading…
Reference in New Issue
Block a user