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
1 changed files with 2 additions and 0 deletions

View File

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