diff --git a/src/build-flags.ts b/src/build-flags.ts index 155230e5..f57e1584 100644 --- a/src/build-flags.ts +++ b/src/build-flags.ts @@ -1,2 +1,3 @@ export const LOGIN_INCLUDE_DEV_SERVERS = true export const TABS_ENABLED = false +export const IMAGES_ENABLED = false diff --git a/src/view/com/composer/ComposePost.tsx b/src/view/com/composer/ComposePost.tsx index b43f4ab9..10d9f4b1 100644 --- a/src/view/com/composer/ComposePost.tsx +++ b/src/view/com/composer/ComposePost.tsx @@ -26,6 +26,7 @@ import {detectLinkables} from '../../../lib/strings' import {UserLocalPhotosModel} from '../../../state/models/user-local-photos' import {PhotoCarouselPicker} from './PhotoCarouselPicker' import {SelectedPhoto} from './SelectedPhoto' +import {IMAGES_ENABLED} from '../../../build-flags' const MAX_TEXT_LENGTH = 256 const DANGER_TEXT_LENGTH = MAX_TEXT_LENGTH @@ -235,7 +236,8 @@ export const ComposePost = observer(function ComposePost({ selectedPhotos={selectedPhotos} setSelectedPhotos={setSelectedPhotos} /> - {localPhotos.photos != null && + {IMAGES_ENABLED && + localPhotos.photos != null && text === '' && selectedPhotos.length === 0 && ( )} - - + {MAX_TEXT_LENGTH - text.length} @@ -348,10 +349,12 @@ const styles = StyleSheet.create({ paddingLeft: 13, paddingRight: 8, }, - contentCenter: {alignItems: 'center'}, - separator: { - borderBottomColor: 'black', - borderBottomWidth: StyleSheet.hairlineWidth, - width: '100%', + bottomBar: { + flexDirection: 'row', + paddingVertical: 10, + paddingRight: 5, + alignItems: 'center', + borderTopWidth: 1, + borderTopColor: colors.gray2, }, })