From 98844449b0b1199f7df28ac5dee5e475ba0b5958 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 22 Jun 2017 10:34:15 -0400 Subject: Allow closing of favorited GMs (#6700) --- webapp/components/sidebar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/components/sidebar.jsx') 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); } -- cgit v1.2.3-1-g7c22