From 3cb38de29cd7b04fd7de4d2e8d0c7e18816168cd Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 13 May 2020 15:26:41 +1000 Subject: [PATCH] renderRow filter --- ts/components/session/LeftPaneContactSection.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/components/session/LeftPaneContactSection.tsx b/ts/components/session/LeftPaneContactSection.tsx index dd884a8f7..7081c2d4d 100644 --- a/ts/components/session/LeftPaneContactSection.tsx +++ b/ts/components/session/LeftPaneContactSection.tsx @@ -144,7 +144,8 @@ export class LeftPaneContactSection extends React.Component { style, }: RowRendererParamsType): JSX.Element | undefined => { const { sentFriendsRequest } = this.props; - const friends = window.getFriendsFromContacts(this.props.friends); + const contacts = this.props.friends.filter(f => f.type === 'direct'); + const friends = window.getFriendsFromContacts(contacts); const combined = [...sentFriendsRequest, ...friends]; const item = combined[index];