summaryrefslogtreecommitdiffstats
path: root/web/react/components/more_direct_channels.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-07 11:34:29 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-13 09:42:26 -0400
commit097d236f437b0c5af167cd383c6ee4c3ee45f495 (patch)
treeed81272f94f8706b5ddf25badde6d660df7a657c /web/react/components/more_direct_channels.jsx
parented6b2cd164b249c67db0e0421cc78964450240c9 (diff)
downloadchat-097d236f437b0c5af167cd383c6ee4c3ee45f495.tar.gz
chat-097d236f437b0c5af167cd383c6ee4c3ee45f495.tar.bz2
chat-097d236f437b0c5af167cd383c6ee4c3ee45f495.zip
Fixed edge cases with leaving a direct channel while viewing that channel
Diffstat (limited to 'web/react/components/more_direct_channels.jsx')
-rw-r--r--web/react/components/more_direct_channels.jsx15
1 files changed, 0 insertions, 15 deletions
diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx
index ed9c6fc58..96c08c441 100644
--- a/web/react/components/more_direct_channels.jsx
+++ b/web/react/components/more_direct_channels.jsx
@@ -82,21 +82,6 @@ export default class MoreDirectChannels extends React.Component {
);
};
}
- } else {
- if (channel.id === ChannelStore.getCurrentId()) {
- active = 'active';
- }
-
- if (channel.unread) {
- badge = <span className='badge pull-right small'>{channel.unread}</span>;
- titleClass = 'unread-title';
- }
-
- handleClick = function clickHandler(e) {
- e.preventDefault();
- utils.switchChannel(channel);
- $(React.findDOMNode(self.refs.modal)).modal('hide');
- };
}
return (