0
0
Fork 0

Compose form in the UI now has public/private toggle instead of public/unlisted

This commit is contained in:
Eugen Rochko 2016-12-23 00:38:16 +01:00
parent b302b9202b
commit de9b6e3a6a
5 changed files with 10 additions and 10 deletions

View file

@ -26,7 +26,7 @@ import Immutable from 'immutable';
const initialState = Immutable.Map({
mounted: false,
sensitive: false,
unlisted: false,
private: false,
text: '',
in_reply_to: null,
is_submitting: false,
@ -92,7 +92,7 @@ export default function compose(state = initialState, action) {
case COMPOSE_SENSITIVITY_CHANGE:
return state.set('sensitive', action.checked);
case COMPOSE_VISIBILITY_CHANGE:
return state.set('unlisted', action.checked);
return state.set('private', action.checked);
case COMPOSE_CHANGE:
return state.set('text', action.text);
case COMPOSE_REPLY:
@ -136,7 +136,7 @@ export default function compose(state = initialState, action) {
return state;
}
case ACCOUNT_SET_SELF:
return state.set('me', action.account.id);
return state.set('me', action.account.id).set('private', action.account.locked);
default:
return state;
}