diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-22 10:34:15 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-06-22 10:34:15 -0400 |
commit | 98844449b0b1199f7df28ac5dee5e475ba0b5958 (patch) | |
tree | deeb83000566d74713e08caf3fbe1de28f8cfb58 /webapp | |
parent | fafeadf8ae1d63204e62347cd47115ed9cfbd219 (diff) | |
download | chat-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.jsx | 2 |
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); } |