mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -05:00
Update ContextMenus.tsx
Add Create Invite button to server context menu
This commit is contained in:
parent
8ba5c13cfc
commit
30448ce5a0
1 changed files with 9 additions and 0 deletions
|
@ -860,6 +860,15 @@ function ContextMenus(props: Props) {
|
|||
}
|
||||
|
||||
if (sid && server) {
|
||||
if (server.channels[0] !== undefined)
|
||||
generateAction(
|
||||
{
|
||||
action: "create_invite",
|
||||
target: server.channels[0],
|
||||
},
|
||||
"create_invite",
|
||||
);
|
||||
|
||||
if (
|
||||
serverPermissions &
|
||||
ServerPermission.ChangeNickname ||
|
||||
|
|
Loading…
Reference in a new issue