diff --git a/ts/components/conversationList/ConversationListItem.tsx b/ts/components/conversationList/ConversationListItem.tsx index b4548d253..63407ade3 100644 --- a/ts/components/conversationList/ConversationListItem.tsx +++ b/ts/components/conversationList/ConversationListItem.tsx @@ -130,7 +130,7 @@ export const ConversationListItem: FunctionComponent = React.memo( {i18n('ConversationListItem--draft-prefix')} = React.memo( ) : ( = React.memo( ); } ); + +function truncateMessageText(text: undefined | string = ''): string { + return text.split('\n', 1)[0]; +}