From 1e245f19c7884e293698fe2e8cd7f46d4dac54c9 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Mon, 6 Jun 2016 13:41:54 -0400
Subject: PLT-3114 Moved preview collapse out of pre-release features (#3206)

* Added user setting to auto collapse image previews

* Added slash commands for collapsing/expanding image previews

* Added translation strings for collapse setting

* Add default props for preview collapse setting
---
 webapp/stores/preference_store.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'webapp/stores/preference_store.jsx')

diff --git a/webapp/stores/preference_store.jsx b/webapp/stores/preference_store.jsx
index d84f2ded9..13e0a94f6 100644
--- a/webapp/stores/preference_store.jsx
+++ b/webapp/stores/preference_store.jsx
@@ -82,8 +82,8 @@ class PreferenceStoreClass extends EventEmitter {
         this.preferences.clear();
     }
 
-    emitChange() {
-        this.emit(CHANGE_EVENT);
+    emitChange(category) {
+        this.emit(CHANGE_EVENT, category);
     }
 
     addChangeListener(callback) {
@@ -101,7 +101,7 @@ class PreferenceStoreClass extends EventEmitter {
         case ActionTypes.RECEIVED_PREFERENCE: {
             const preference = action.preference;
             this.setPreference(preference.category, preference.name, preference.value);
-            this.emitChange();
+            this.emitChange(preference.category);
             break;
         }
         case ActionTypes.RECEIVED_PREFERENCES:
-- 
cgit v1.2.3-1-g7c22

