summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/sidebar.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx
index f724d73db..8b2687e26 100644
--- a/webapp/components/sidebar.jsx
+++ b/webapp/components/sidebar.jsx
@@ -203,7 +203,11 @@ export default class Sidebar extends React.Component {
handleOpenMoreDirectChannelsModal(e) {
e.preventDefault();
- this.showMoreDirectChannelsModal();
+ if (this.state.showDirectChannelsModal) {
+ this.hideMoreDirectChannelsModal();
+ } else {
+ this.showMoreDirectChannelsModal();
+ }
}
onChange() {