about summary refs log tree commit diff
path: root/app/assets/javascripts/components/reducers/compose.jsx
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-24 01:28:37 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-24 01:28:37 +0100
commit60f2da1b2f0c12cc732eb4d3ac2750ba2164b49f (patch)
tree166095d8654690bf57152c9aa1d467ac070a8c30 /app/assets/javascripts/components/reducers/compose.jsx
parent6e064cf715702636bd938dcf46fb1253503dbf04 (diff)
parent0bc6da89d2c57d3d90d2a71ee7d98d37569449f9 (diff)
Merge pull request #369 (nice)
Diffstat (limited to 'app/assets/javascripts/components/reducers/compose.jsx')
-rw-r--r--app/assets/javascripts/components/reducers/compose.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/compose.jsx b/app/assets/javascripts/components/reducers/compose.jsx
index bdf374a00..742272e6f 100644
--- a/app/assets/javascripts/components/reducers/compose.jsx
+++ b/app/assets/javascripts/components/reducers/compose.jsx
@@ -17,7 +17,8 @@ import {
   COMPOSE_SUGGESTIONS_READY,
   COMPOSE_SUGGESTION_SELECT,
   COMPOSE_SENSITIVITY_CHANGE,
-  COMPOSE_VISIBILITY_CHANGE
+  COMPOSE_VISIBILITY_CHANGE,
+  COMPOSE_LISTABILITY_CHANGE
 } from '../actions/compose';
 import { TIMELINE_DELETE } from '../actions/timelines';
 import { ACCOUNT_SET_SELF } from '../actions/accounts';
@@ -26,6 +27,7 @@ import Immutable from 'immutable';
 const initialState = Immutable.Map({
   mounted: false,
   sensitive: false,
+  unlisted: false,
   private: false,
   text: '',
   in_reply_to: null,
@@ -93,6 +95,8 @@ export default function compose(state = initialState, action) {
       return state.set('sensitive', action.checked);
     case COMPOSE_VISIBILITY_CHANGE:
       return state.set('private', action.checked);
+    case COMPOSE_LISTABILITY_CHANGE:
+      return state.set('unlisted', action.checked);      
     case COMPOSE_CHANGE:
       return state.set('text', action.text);
     case COMPOSE_REPLY: