Correct feed ordering
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
2014517173
commit
74649f1f92
1 changed files with 1 additions and 5 deletions
|
@ -27,11 +27,7 @@ interface IProps {
|
||||||
|
|
||||||
export default class CallViewSidebar extends React.Component<IProps> {
|
export default class CallViewSidebar extends React.Component<IProps> {
|
||||||
render() {
|
render() {
|
||||||
const feeds = this.props.feeds.sort((a, b) => {
|
const feeds = this.props.feeds.map((feed) => {
|
||||||
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
|
// Hide local video feed if video is off
|
||||||
if (
|
if (
|
||||||
this.props.call.isLocalVideoMuted()
|
this.props.call.isLocalVideoMuted()
|
||||||
|
|
Loading…
Reference in a new issue