From 944bb1ba615ef5205f33191a4542f36002a4db23 Mon Sep 17 00:00:00 2001
From: Pepijn <pepijnfens@gmail.com>
Date: Tue, 11 Oct 2016 15:07:38 +0200
Subject: First commit for toggling mentions using shortcut and button (#4169)

Also did some refactoring and moved code to actions

Fixed coding style errors
---
 webapp/components/sidebar_right.jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'webapp/components/sidebar_right.jsx')

diff --git a/webapp/components/sidebar_right.jsx b/webapp/components/sidebar_right.jsx
index ffafb9434..1f4c394bb 100644
--- a/webapp/components/sidebar_right.jsx
+++ b/webapp/components/sidebar_right.jsx
@@ -37,6 +37,7 @@ export default class SidebarRight extends React.Component {
         this.state = {
             searchVisible: SearchStore.getSearchResults() !== null,
             isMentionSearch: SearchStore.getIsMentionSearch(),
+            isFlaggedPosts: SearchStore.getIsFlaggedPosts(),
             postRightVisible: Boolean(PostStore.getSelectedPost()),
             expanded: false,
             fromSearch: false,
@@ -125,7 +126,9 @@ export default class SidebarRight extends React.Component {
     }
 
     onShrink() {
-        this.setState({expanded: false});
+        this.setState({
+            expanded: false
+        });
     }
 
     onSearchChange() {
-- 
cgit v1.2.3-1-g7c22

