From 74649f1f920670b603b649b7eef9507f9ef1c008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 21 Jul 2021 16:21:52 +0200 Subject: [PATCH] Correct feed ordering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/CallViewSidebar.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/views/voip/CallViewSidebar.tsx b/src/components/views/voip/CallViewSidebar.tsx index 2ae62cfb59..a8c6eed5a2 100644 --- a/src/components/views/voip/CallViewSidebar.tsx +++ b/src/components/views/voip/CallViewSidebar.tsx @@ -27,11 +27,7 @@ interface IProps { export default class CallViewSidebar extends React.Component { render() { - const feeds = this.props.feeds.sort((a, b) => { - if (!a.isLocal() && b.isLocal()) return -1; - else if (a.isLocal() && !b.isLocal()) return 1; - return 0; - }).map((feed) => { + const feeds = this.props.feeds.map((feed) => { // Hide local video feed if video is off if ( this.props.call.isLocalVideoMuted()