refresh contacts list on conversation change (using props) (#731)

refresh contacts list on conversation change (using props)
pull/737/head
Audric Ackermann 5 years ago committed by GitHub
commit 9f98e74baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -336,6 +336,7 @@ export class LeftPaneContactSection extends React.Component<Props, State> {
const { sentFriendsRequest } = this.props;
const friends = this.getCurrentFriends();
const length = sentFriendsRequest.length + friends.length;
const combined = [...sentFriendsRequest, ...friends];
const list = (
<div className="module-left-pane__list" key={0}>
@ -345,6 +346,7 @@ export class LeftPaneContactSection extends React.Component<Props, State> {
className="module-left-pane__virtual-list"
height={height}
rowCount={length}
combined={combined}
rowHeight={64}
rowRenderer={this.renderRow}
width={width}

Loading…
Cancel
Save