feat: context menus in contact list page

This commit is contained in:
zerosoul
2022-06-10 09:44:14 +08:00
parent ec9bcb3233
commit 07d72d9aeb
4 changed files with 11 additions and 2 deletions
@@ -18,8 +18,10 @@ export default function ContactContextMenu({
copyEmail,
canCopyEmail,
startChat,
canRemove,
canRemoveFromChannel,
removeFromChannel,
removeUser,
} = useContactOperation({
uid,
cid,
@@ -56,6 +58,11 @@ export default function ContactContextMenu({
title: "Remove From Channel",
handler: removeFromChannel,
},
canRemove && {
danger: true,
title: "Remove From Server",
handler: removeUser,
},
]}
/>
}