Groups: compose form improvements
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
be30cdbcb2
commit
c1663d743a
1 changed files with 4 additions and 0 deletions
|
@ -357,6 +357,10 @@ export default function compose(state = initialState, action: AnyAction) {
|
|||
return updateCompose(state, action.id, () => state.get('default')!.withMutations(map => {
|
||||
map.set('idempotencyKey', uuid());
|
||||
map.set('in_reply_to', action.id.startsWith('reply:') ? action.id.slice(6) : null);
|
||||
if (action.id.startsWith('group:')) {
|
||||
map.set('privacy', 'group');
|
||||
map.set('group_id', action.id.slice(6));
|
||||
}
|
||||
}));
|
||||
case COMPOSE_SUBMIT_FAIL:
|
||||
return updateCompose(state, action.id, compose => compose.set('is_submitting', false));
|
||||
|
|
Loading…
Reference in a new issue