mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -05:00
Merge pull request #83 from ryanalexander/patch-1
Update ContextMenus.tsx
This commit is contained in:
commit
dcb038f986
1 changed files with 9 additions and 0 deletions
|
@ -860,6 +860,15 @@ function ContextMenus(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sid && server) {
|
if (sid && server) {
|
||||||
|
if (server.channels[0] !== undefined)
|
||||||
|
generateAction(
|
||||||
|
{
|
||||||
|
action: "create_invite",
|
||||||
|
target: server.channels[0],
|
||||||
|
},
|
||||||
|
"create_invite",
|
||||||
|
);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
serverPermissions &
|
serverPermissions &
|
||||||
ServerPermission.ChangeNickname ||
|
ServerPermission.ChangeNickname ||
|
||||||
|
|
Loading…
Reference in a new issue