Correct feed ordering

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-21 16:21:52 +02:00
parent 2014517173
commit 74649f1f92
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D

View file

@ -27,11 +27,7 @@ interface IProps {
export default class CallViewSidebar extends React.Component<IProps> {
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()