From ef363fd88ebb731dbb0470ad7cb5f50de0f3845c Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 28 Oct 2016 12:41:28 -0400 Subject: Fix channel autocomplete and fix channel member query to ignore deleted channels (#4371) --- webapp/stores/channel_store.jsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'webapp/stores/channel_store.jsx') diff --git a/webapp/stores/channel_store.jsx b/webapp/stores/channel_store.jsx index 16a094c7b..f0258d02a 100644 --- a/webapp/stores/channel_store.jsx +++ b/webapp/stores/channel_store.jsx @@ -26,7 +26,6 @@ class ChannelStoreClass extends EventEmitter { this.channels = []; this.myChannelMembers = {}; this.moreChannels = {}; - this.moreChannels.loading = true; this.stats = {}; this.unreadCounts = {}; } @@ -300,13 +299,7 @@ class ChannelStoreClass extends EventEmitter { const ch = this.get(id); const chMember = this.getMyMember(id); - if (ch == null) { - console.log('setUnreadCountByChannel: missing channel id ' + id); //eslint-disable-line no-console - return; - } - - if (chMember == null) { - console.log('setUnreadCountByChannel: missing channel member for channel id ' + id); //eslint-disable-line no-console + if (ch == null || chMember == null) { return; } -- cgit v1.2.3-1-g7c22