From c1663d743ac6e503d4f90f8fac6ebe077fb553e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 17 Dec 2022 13:41:53 +0100 Subject: [PATCH] Groups: compose form improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/reducers/compose.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/soapbox/reducers/compose.ts b/app/soapbox/reducers/compose.ts index 54a40f641..11acd872b 100644 --- a/app/soapbox/reducers/compose.ts +++ b/app/soapbox/reducers/compose.ts @@ -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));