summaryrefslogtreecommitdiffstats
path: root/webapp/stores/channel_store.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-02 09:28:44 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2017-05-02 09:28:44 -0400
commit042052aec61b8c51751cb3aeb27c6c21ecf16416 (patch)
treecedfee7c1ddecacdddc155a453f33b717b233490 /webapp/stores/channel_store.jsx
parent294bd0825550cd8de557a8b36facfc601f32bd82 (diff)
downloadchat-042052aec61b8c51751cb3aeb27c6c21ecf16416.tar.gz
chat-042052aec61b8c51751cb3aeb27c6c21ecf16416.tar.bz2
chat-042052aec61b8c51751cb3aeb27c6c21ecf16416.zip
Improve perf for channel switching, fix team switching issues (#6286)
* Improve perf for channel switching, fix team switching issues * Fix last channel when switching teams
Diffstat (limited to 'webapp/stores/channel_store.jsx')
-rw-r--r--webapp/stores/channel_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/stores/channel_store.jsx b/webapp/stores/channel_store.jsx
index 1440c1590..db1bead46 100644
--- a/webapp/stores/channel_store.jsx
+++ b/webapp/stores/channel_store.jsx
@@ -261,7 +261,7 @@ class ChannelStoreClass extends EventEmitter {
}
getChannelById(id) {
- return Selectors.getChannelsInCurrentTeam(store.getState())[id];
+ return this.get(id);
}
storeMyChannelMember(channelMember) {