Skip to content

Commit f67226e

Browse files
committed
fix: hide channel creation modal for private users [WPB-20178] (#19524)
1 parent f055524 commit f67226e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/page/LeftSidebar/panels/Conversations/ConversationHeader/ConversationHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const ConversationHeaderComponent = ({
105105
}, [searchInputRef, jumpToRecentSearch]);
106106

107107
const showCreateConversationModal = () => {
108-
if (isChannelsEnabled && (canCreateChannels || !selfUser.teamId)) {
108+
if (isChannelsEnabled && canCreateChannels) {
109109
showModal();
110110
} else {
111111
amplify.publish(WebAppEvents.CONVERSATION.CREATE_GROUP, 'conversation_details');

0 commit comments

Comments
 (0)