diff options
author | David Lu <david.lu@hotmail.com> | 2016-06-02 15:45:38 -0700 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-06-02 19:45:38 -0300 |
commit | 9509398d3270c1b6056ca78ddc9913273585c0af (patch) | |
tree | 66b4aca294e91817a0cae9929456c63dd64b4cc6 /webapp/stores | |
parent | 2f7540e174dce808dc642c42d85151238c352e5d (diff) | |
download | chat-9509398d3270c1b6056ca78ddc9913273585c0af.tar.gz chat-9509398d3270c1b6056ca78ddc9913273585c0af.tar.bz2 chat-9509398d3270c1b6056ca78ddc9913273585c0af.zip |
PLT-2962 Added channel switcher modal (#3216)
* Added channel switcher modal
* Fixed typos
* Added handling for duplicate channels
Diffstat (limited to 'webapp/stores')
-rw-r--r-- | webapp/stores/channel_store.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/stores/channel_store.jsx b/webapp/stores/channel_store.jsx index b34e92530..b65ec330c 100644 --- a/webapp/stores/channel_store.jsx +++ b/webapp/stores/channel_store.jsx @@ -36,6 +36,7 @@ class ChannelStoreClass extends EventEmitter { this.get = this.get.bind(this); this.getMember = this.getMember.bind(this); this.getByName = this.getByName.bind(this); + this.getByDisplayName = this.getByDisplayName.bind(this); this.setPostMode = this.setPostMode.bind(this); this.getPostMode = this.getPostMode.bind(this); this.setUnreadCount = this.setUnreadCount.bind(this); @@ -118,6 +119,9 @@ class ChannelStoreClass extends EventEmitter { getByName(name) { return this.findFirstBy('name', name); } + getByDisplayName(displayName) { + return this.findFirstBy('display_name', displayName); + } getMoreByName(name) { return this.findFirstMoreBy('name', name); } |