diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-05-02 09:28:44 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-05-02 09:28:44 -0400 |
commit | 042052aec61b8c51751cb3aeb27c6c21ecf16416 (patch) | |
tree | cedfee7c1ddecacdddc155a453f33b717b233490 /webapp/stores/channel_store.jsx | |
parent | 294bd0825550cd8de557a8b36facfc601f32bd82 (diff) | |
download | chat-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.jsx | 2 |
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) { |