diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go
index d1d48ef696..8b77ab6ff5 100644
--- a/store/sql_channel_store.go
+++ b/store/sql_channel_store.go
@@ -1040,6 +1040,7 @@ func (s SqlChannelStore) GetMembersForUser(teamId string, userId string) StoreCh
INNER JOIN Channels c
ON c.Id = cm.ChannelId
AND (c.TeamId = :TeamId OR c.TeamId = '')
+ AND c.DeleteAt = 0
WHERE cm.UserId = :UserId
`, map[string]interface{}{"TeamId": teamId, "UserId": userId})
diff --git a/webapp/components/more_channels.jsx b/webapp/components/more_channels.jsx
index 00e7ecf787..b72f9aedd6 100644
--- a/webapp/components/more_channels.jsx
+++ b/webapp/components/more_channels.jsx
@@ -31,10 +31,12 @@ export default class MoreChannels extends React.Component {
this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
- const initState = this.getStateFromStores();
- initState.channelType = '';
- initState.showNewChannelModal = false;
- this.state = initState;
+ this.state = {
+ channelType: '',
+ showNewChannelModal: false,
+ channels: null,
+ serverError: null
+ };
}
componentDidMount() {
@@ -140,31 +142,28 @@ export default class MoreChannels extends React.Component {
}
let moreChannels;
-
- if (this.state.channels != null) {
- var channels = this.state.channels;
- if (channels.loading) {
- moreChannels =
-
+