Render only visible conversations in left pane
This commit is contained in:
parent
031b64a476
commit
d72f89d776
6 changed files with 65 additions and 13 deletions
|
@ -32,6 +32,7 @@ export type PropsData = {
|
|||
|
||||
type PropsHousekeeping = {
|
||||
i18n: LocalizerType;
|
||||
style?: Object;
|
||||
onClick?: (id: string) => void;
|
||||
};
|
||||
|
||||
|
@ -176,7 +177,7 @@ export class ConversationListItem extends React.PureComponent<Props> {
|
|||
}
|
||||
|
||||
public render() {
|
||||
const { unreadCount, onClick, id, isSelected } = this.props;
|
||||
const { unreadCount, onClick, id, isSelected, style } = this.props;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
@ -186,6 +187,7 @@ export class ConversationListItem extends React.PureComponent<Props> {
|
|||
onClick(id);
|
||||
}
|
||||
}}
|
||||
style={style}
|
||||
className={classNames(
|
||||
'module-conversation-list-item',
|
||||
unreadCount > 0 ? 'module-conversation-list-item--has-unread' : null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue