summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/channel_header.jsx3
-rw-r--r--webapp/components/navbar.jsx3
2 files changed, 2 insertions, 4 deletions
diff --git a/webapp/components/channel_header.jsx b/webapp/components/channel_header.jsx
index f89c18745..29498eef2 100644
--- a/webapp/components/channel_header.jsx
+++ b/webapp/components/channel_header.jsx
@@ -680,8 +680,7 @@ export default class ChannelHeader extends React.Component {
);
}
- const canLeave = channel.type === Constants.PRIVATE_CHANNEL ? this.state.userCount > 1 : true;
- if (!ChannelStore.isDefault(channel) && canLeave) {
+ if (!ChannelStore.isDefault(channel)) {
dropdownContents.push(
<li
key='divider-3'
diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx
index 25c458523..43411c2cf 100644
--- a/webapp/components/navbar.jsx
+++ b/webapp/components/navbar.jsx
@@ -555,8 +555,7 @@ export default class Navbar extends React.Component {
);
}
- const canLeave = channel.type === Constants.PRIVATE_CHANNEL ? this.state.userCount > 1 : true;
- if (!ChannelStore.isDefault(channel) && canLeave) {
+ if (!ChannelStore.isDefault(channel)) {
leaveChannelOption = (
<li role='presentation'>
<a