summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-06-02 15:45:38 -0700
committerenahum <nahumhbl@gmail.com>2016-06-02 19:45:38 -0300
commit9509398d3270c1b6056ca78ddc9913273585c0af (patch)
tree66b4aca294e91817a0cae9929456c63dd64b4cc6 /webapp/stores
parent2f7540e174dce808dc642c42d85151238c352e5d (diff)
downloadchat-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.jsx4
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);
}