diff --git a/app/containers/markdown/index.tsx b/app/containers/markdown/index.tsx index e8e2ea06b..f11ab6730 100644 --- a/app/containers/markdown/index.tsx +++ b/app/containers/markdown/index.tsx @@ -25,7 +25,7 @@ import { isValidURL } from '../../utils/url'; import NewMarkdown from './new'; interface IMarkdownProps { - msg: string; + msg?: string; md: MarkdownAST; mentions: UserMention[]; getCustomEmoji: Function; diff --git a/app/views/DiscussionsView/Item.tsx b/app/views/DiscussionsView/Item.tsx index af2e18a03..c88395823 100644 --- a/app/views/DiscussionsView/Item.tsx +++ b/app/views/DiscussionsView/Item.tsx @@ -71,21 +71,21 @@ const Item = ({ item, baseUrl, onPress }: IItem): JSX.Element => { onPress(item)} testID={`discussions-view-${item.msg}`} - style={{ backgroundColor: themes[theme!].backgroundColor }}> + style={{ backgroundColor: themes[theme].backgroundColor }}> - + {username} - {messageTime!} + {messageTime ? {messageTime} : null} - {makeThreadName(item) && item && username ? ( + {username ? ( /* @ts-ignore */ {time} - + {makeThreadName(item) && username ? ( + /* @ts-ignore */ + + ) : null} {badgeColor ? : null}