summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_list.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-07-17 10:19:50 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-07-17 10:19:50 -0400
commit05d6a3a8128ea9b901a3f6eba0bd048b0464a390 (patch)
treeaf1e66b0cd8bffd8fbc51d1a8628c649d01b0b23 /web/react/components/post_list.jsx
parent7fae4db6e676c44d23eeff56d856dd13cb77b7e7 (diff)
parent56db6ad08cf23dbdcee326fa39bda8bcdcdecf9e (diff)
downloadchat-05d6a3a8128ea9b901a3f6eba0bd048b0464a390.tar.gz
chat-05d6a3a8128ea9b901a3f6eba0bd048b0464a390.tar.bz2
chat-05d6a3a8128ea9b901a3f6eba0bd048b0464a390.zip
Merge pull request #193 from ralder/fix-manage-members-town-square
[webui] remove admin's ability to manage members of default channel fixes (#172)
Diffstat (limited to 'web/react/components/post_list.jsx')
-rw-r--r--web/react/components/post_list.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx
index 98491976f..573799a19 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -6,7 +6,6 @@ var ChannelStore = require('../stores/channel_store.jsx');
var UserStore = require('../stores/user_store.jsx');
var UserProfile = require( './user_profile.jsx' );
var AsyncClient = require('../utils/async_client.jsx');
-var CreatePost = require('./create_post.jsx');
var Post = require('./post.jsx');
var LoadingScreen = require('./loading_screen.jsx');
var SocketStore = require('../stores/socket_store.jsx');
@@ -341,7 +340,7 @@ module.exports = React.createClass({
}
}
- if (channel.name === Constants.DEFAULT_CHANNEL) {
+ if (ChannelStore.isDefault(channel)) {
more_messages = (
<div className="channel-intro">
<h4 className="channel-intro-title">Welcome</h4>