Sort feeds

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-07-20 17:34:47 +02:00
parent 3993e698bd
commit 9fb872cade
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,11 @@ interface IProps {
export default class CallViewSidebar extends React.Component<IProps> {
render() {
const feeds = this.props.feeds.map((feed) => {
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) => {
// Hide local video feed if video is off
if (
this.props.call.isLocalVideoMuted()