summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-06-22 10:34:15 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2017-06-22 10:34:15 -0400
commit98844449b0b1199f7df28ac5dee5e475ba0b5958 (patch)
treedeeb83000566d74713e08caf3fbe1de28f8cfb58 /webapp
parentfafeadf8ae1d63204e62347cd47115ed9cfbd219 (diff)
downloadchat-98844449b0b1199f7df28ac5dee5e475ba0b5958.tar.gz
chat-98844449b0b1199f7df28ac5dee5e475ba0b5958.tar.bz2
chat-98844449b0b1199f7df28ac5dee5e475ba0b5958.zip
Allow closing of favorited GMs (#6700)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/sidebar.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx
index 9311c5dfd..f724d73db 100644
--- a/webapp/components/sidebar.jsx
+++ b/webapp/components/sidebar.jsx
@@ -654,7 +654,7 @@ export default class Sidebar extends React.Component {
// create elements for all 4 types of channels
const favoriteItems = this.state.favoriteChannels.
map((channel, index, arr) => {
- if (channel.type === Constants.DM_CHANNEL) {
+ if (channel.type === Constants.DM_CHANNEL || channel.type === Constants.GM_CHANNEL) {
return this.createChannelElement(channel, index, arr, this.handleLeaveDirectChannel);
}