diff --git a/frontend/app/src/components/home/groupdetails/GroupDetails.svelte b/frontend/app/src/components/home/groupdetails/GroupDetails.svelte index b33e4e602e..ec22ab34b0 100644 --- a/frontend/app/src/components/home/groupdetails/GroupDetails.svelte +++ b/frontend/app/src/components/home/groupdetails/GroupDetails.svelte @@ -36,7 +36,8 @@ $: currentUser = client.user; $: canEdit = client.canEditGroupDetails(chat.id); $: canSend = client.canSendMessage(chat.id, "any"); - $: canInvite = client.canInviteUsers(chat.id) && (chat.kind === "group_chat" || chat.public); + $: canInvite = + client.canInviteUsers(chat.id) && (chat.kind !== "channel" || !client.isChatPrivate(chat)); $: avatarSrc = client.groupAvatarUrl(chat); $: currentChatRules = client.currentChatRules; diff --git a/frontend/app/src/components/home/groupdetails/InviteUsers.svelte b/frontend/app/src/components/home/groupdetails/InviteUsers.svelte index 65c030557d..4ee56352c2 100644 --- a/frontend/app/src/components/home/groupdetails/InviteUsers.svelte +++ b/frontend/app/src/components/home/groupdetails/InviteUsers.svelte @@ -30,7 +30,8 @@ export let container: MultiUserChat | CommunitySummary; $: canInvite = - client.canInviteUsers(container.id) && (container.kind !== "channel" || container.public); + client.canInviteUsers(container.id) && + (container.kind !== "channel" || !client.isChatPrivate(container)); const dispatch = createEventDispatcher(); let usersToInvite: UserSummary[] = [];