Ensure group_visibility param is passed when creating group

This commit is contained in:
Alex Gleason 2023-03-20 15:30:13 -05:00
parent e46a7e8f4a
commit 28a69ad88b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -789,9 +789,11 @@ const submitGroupEditor = (shouldReset?: boolean) => (dispatch: AppDispatch, get
const note = getState().group_editor.note;
const avatar = getState().group_editor.avatar;
const header = getState().group_editor.header;
const visibility = getState().group_editor.locked ? 'members_only' : 'everyone'; // Truth Social
const params: Record<string, any> = {
display_name: displayName,
group_visibility: visibility,
note,
};