Commit 17ac9d02 authored by Martin Santangelo's avatar Martin Santangelo

(fix) title not shown when description is empty

parent 96c07a0c
......@@ -58,7 +58,7 @@ const ActivityFullScreen = observer((props: PropsType) => {
const navigation = useNavigation();
const hasMedia = entity.hasMedia();
const hasRemind = !!entity.remind_object;
const showText = !!entity.text && !store.isEditing;
const showText = (!!entity.text || entity.title) && !store.isEditing;
const isShortText =
!hasMedia && !hasRemind && entity.text.length < FONT_THRESHOLD;
......
......@@ -149,7 +149,7 @@ export default class Activity extends Component<PropsType, StateType> {
);
}
const hasText = !!entity.text;
const hasText = !!entity.text || !!entity.title;
const lock =
entity.paywall && entity.paywall === '1' ? (
<Lock entity={entity} navigation={this.props.navigation} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment