Introduce a new design for the left pane
This commit is contained in:
parent
d60600d6fb
commit
35a54cdc02
63 changed files with 1205 additions and 576 deletions
|
@ -173,6 +173,7 @@ export const ConversationListItem: FunctionComponent<Props> = React.memo(
|
|||
markedUnread={markedUnread}
|
||||
messageStatusIcon={messageStatusIcon}
|
||||
messageText={messageText}
|
||||
messageTextIsAlwaysFullSize
|
||||
name={name}
|
||||
onClick={onClickItem}
|
||||
phoneNumber={phoneNumber}
|
||||
|
@ -193,5 +194,5 @@ function truncateMessageText(text: unknown): string {
|
|||
if (typeof text !== 'string') {
|
||||
return '';
|
||||
}
|
||||
return text.split('\n', 1)[0];
|
||||
return text.replace(/(?:\r?\n)+/g, ' ');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue