mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Sort feeds
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
3993e698bd
commit
9fb872cade
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,11 @@ 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.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
|
// Hide local video feed if video is off
|
||||||
if (
|
if (
|
||||||
this.props.call.isLocalVideoMuted()
|
this.props.call.isLocalVideoMuted()
|
||||||
|
|
Loading…
Reference in a new issue