A set of composer fixes (#1187)
* Don't insert a newline on cmd+entrl (close #1173) * Don't linkify selected text on url-paste (close #1149) * Disable the adult content controls if there is no media on the post (close #1169)
This commit is contained in:
parent
819340dd3c
commit
5e63d3164b
5 changed files with 66 additions and 42 deletions
|
@ -218,6 +218,7 @@ export const ComposePost = observer(function ComposePost({
|
|||
const selectTextInputPlaceholder = replyTo ? 'Write your reply' : `What's up?`
|
||||
|
||||
const canSelectImages = useMemo(() => gallery.size < 4, [gallery.size])
|
||||
const hasMedia = gallery.size > 0 || Boolean(extLink)
|
||||
|
||||
return (
|
||||
<KeyboardAvoidingView
|
||||
|
@ -236,7 +237,7 @@ export const ComposePost = observer(function ComposePost({
|
|||
<Text style={[pal.link, s.f18]}>Cancel</Text>
|
||||
</TouchableOpacity>
|
||||
<View style={s.flex1} />
|
||||
<LabelsBtn labels={labels} onChange={setLabels} />
|
||||
<LabelsBtn labels={labels} onChange={setLabels} hasMedia={hasMedia} />
|
||||
{isProcessing ? (
|
||||
<View style={styles.postBtn}>
|
||||
<ActivityIndicator />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue