about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-07-11 22:41:23 +0200
committerThibG <thib@sitedethib.com>2018-07-12 11:22:34 +0200
commit8c8707771df61a30d0a66efd9377a3c5e29ff1d0 (patch)
tree76b82e02f18f5190345d08fd0a9e4c26e6039e9b /app/javascript
parent6f06d16b1e74e8cb0f197d0c12651c875ded51c3 (diff)
Do not store duplicate reply_privacy
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/flavours/glitch/features/local_settings/page/index.js6
-rw-r--r--app/javascript/flavours/glitch/reducers/compose.js3
2 files changed, 3 insertions, 6 deletions
diff --git a/app/javascript/flavours/glitch/features/local_settings/page/index.js b/app/javascript/flavours/glitch/features/local_settings/page/index.js
index 8a09bb6f0..702034cdf 100644
--- a/app/javascript/flavours/glitch/features/local_settings/page/index.js
+++ b/app/javascript/flavours/glitch/features/local_settings/page/index.js
@@ -78,11 +78,11 @@ export default class LocalSettingsPage extends React.PureComponent {
           </LocalSettingsPageItem>
           <LocalSettingsPageItem
             settings={settings}
-            item={['side_arm_auto']}
-            id='mastodon-settings--side_arm_auto'
+            item={['side_arm_reply_mode']}
+            id='mastodon-settings--side_arm_reply_mode'
             onChange={onChange}
           >
-            <FormattedMessage id='settings.side_arm_auto' defaultMessage='Auto privacy for secondary toot button' />
+            <FormattedMessage id='settings.side_arm_reply_mode' defaultMessage='When replying to a toot:' />
           </LocalSettingsPageItem>
         </section>
       </div>
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js
index c04fe545f..a7ce71676 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -56,7 +56,6 @@ const initialState = ImmutableMap({
   spoiler: false,
   spoiler_text: '',
   privacy: null,
-  reply_privacy: null,
   text: '',
   focusDate: null,
   caretPosition: null,
@@ -291,7 +290,6 @@ export default function compose(state = initialState, action) {
       map.set('in_reply_to', action.status.get('id'));
       map.set('text', statusToTextMentions(state, action.status));
       map.set('privacy', privacyPreference(action.status.get('visibility'), state.get('default_privacy')));
-      map.set('reply_privacy', action.status.get('visibility'));
       map.update(
         'advanced_options',
         map => map.merge(new ImmutableMap({ do_not_federate: /👁\ufe0f?\u200b?(?:<\/p>)?$/.test(action.status.get('content')) }))
@@ -317,7 +315,6 @@ export default function compose(state = initialState, action) {
       map.set('spoiler', false);
       map.set('spoiler_text', '');
       map.set('privacy', state.get('default_privacy'));
-      map.set('reply_privacy', null);
       map.update(
         'advanced_options',
         map => map.mergeWith(overwrite, state.get('default_advanced_options'))