mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 17:35:28 +00:00
Update ContextMenus.tsx
Add Create Invite button to server context menu
This commit is contained in:
@@ -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 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user