Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 3f30180

Browse files
authored
Merge pull request #1431 from withspectrum/hotfix-private-channel-lock
Fix logic on channel view composer
2 parents 0d75725 + 44defee commit 3f30180

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/views/channel/index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,18 @@ class ChannelViewPure extends Component {
218218
)}
219219

220220
{loggedInUser &&
221-
hasRights &&
222-
!channel.community.isPro && (
221+
hasRights &&
222+
channel.isPrivate &&
223+
!channel.community.isPro &&
223224
<UpsellUpgradeCommunityPrivateChannel
224225
community={channel.community}
225226
/>
226227
)}
227228

228229
{loggedInUser &&
229-
hasRights &&
230-
channel.community.isPro && (
230+
hasRights &&
231+
((channel.isPrivate && channel.community.isPro) ||
232+
!channel.isPrivate) &&
231233
<ThreadComposer
232234
activeCommunity={communitySlug}
233235
activeChannel={channelSlug}

0 commit comments

Comments
 (0)