Fixes for duplicate text on message attachments, empty space when attachment has no title (#2460)
This commit is contained in:
parent
341d773e8a
commit
fa10680ef3
2 changed files with 12 additions and 10 deletions
|
|
@ -66,16 +66,18 @@ export default class AttachmentFields extends PureComponent {
|
|||
style={style.flex}
|
||||
key={`attachment__field-${i}__${nrTables}`}
|
||||
>
|
||||
<View
|
||||
style={style.headingContainer}
|
||||
key={`attachment__field-caption-${i}__${nrTables}`}
|
||||
>
|
||||
<View>
|
||||
<Text style={style.heading}>
|
||||
{field.title}
|
||||
</Text>
|
||||
{Boolean(field.title) && (
|
||||
<View
|
||||
style={style.headingContainer}
|
||||
key={`attachment__field-caption-${i}__${nrTables}`}
|
||||
>
|
||||
<View>
|
||||
<Text style={style.heading}>
|
||||
{field.title}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
<View
|
||||
style={style.flex}
|
||||
key={`attachment__field-${i}__${nrTables}`}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ export default class MessageAttachment extends PureComponent {
|
|||
navigator={navigator}
|
||||
onPermalinkPress={onPermalinkPress}
|
||||
textStyles={textStyles}
|
||||
value={attachment.text || attachment.fallback}
|
||||
value={attachment.text}
|
||||
/>
|
||||
<AttachmentFields
|
||||
baseTextStyle={baseTextStyle}
|
||||
|
|
|
|||
Loading…
Reference in a new issue