Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(aot) remove dependency to store (#13910)
Horatiu Muresanb4d12d74f780
diff --git a/react/features/always-on-top/AlwaysOnTop.tsx b/react/features/always-on-top/AlwaysOnTop.tsxindex dfabac2fab..f9c29a3ba4 100644--- a/react/features/always-on-top/AlwaysOnTop.tsx+++ b/react/features/always-on-top/AlwaysOnTop.tsx@@ -4,6 +4,7 @@ import React, { Component } from 'react';// in this environment (e.g. JitsiMeetJS or interfaceConfig)import StatelessAvatar from '../base/avatar/components/web/StatelessAvatar';import { getAvatarColor, getInitials } from '../base/avatar/functions';+import { DEFAULT_ICON } from '../base/icons/svg/constants';import Toolbar from './Toolbar';@@ -184,6 +185,7 @@ export default class AlwaysOnTop extends Component<any, IState> {<div id = 'avatarContainer'><StatelessAvatarcolor = { getAvatarColor(displayName, customAvatarBackgrounds) }+ iconUser = { DEFAULT_ICON.IconUser }id = 'avatar'initials = { getInitials(displayName) }url = { avatarURL } />)diff --git a/react/features/base/avatar/components/Avatar.tsx b/react/features/base/avatar/components/Avatar.tsxindex 758f91c96e..7aaf187cb6 100644--- a/react/features/base/avatar/components/Avatar.tsx+++ b/react/features/base/avatar/components/Avatar.tsx@@ -2,6 +2,7 @@ import React, { PureComponent } from 'react';import { connect } from 'react-redux';import { IReduxState } from '../../../app/types';+import { IconUser } from '../../icons/svg';import { getParticipantById } from '../../participants/functions';import { IParticipant } from '../../participants/types';import { getAvatarColor, getInitials, isCORSAvatarURL } from '../functions';@@ -182,6 +183,7 @@ class Avatar<P extends IProps> extends PureComponent<P, IState> {const avatarProps: AbstractProps & {className?: string;+ iconUser?: any;id?: string;status?: string;testId?: string;@@ -226,6 +228,10 @@ class Avatar<P extends IProps> extends PureComponent<P, IState> {avatarProps.initials = initials;}+ if (navigator.product !== 'ReactNative') {+ avatarProps.iconUser = IconUser;+ }+return (<StatelessAvatar{ ...avatarProps } />diff --git a/react/features/base/avatar/components/web/StatelessAvatar.tsx b/react/features/base/avatar/components/web/StatelessAvatar.tsxindex 81a02308ca..eb5f70caa2 100644--- a/react/features/base/avatar/components/web/StatelessAvatar.tsx+++ b/react/features/base/avatar/components/web/StatelessAvatar.tsx@@ -2,7 +2,6 @@ import React, { useCallback } from 'react';import { makeStyles } from 'tss-react/mui';import Icon from '../../../icons/components/Icon';-import { IconUser } from '../../../icons/svg';import { withPixelLineHeight } from '../../../styles/functions.web';import { isIcon } from '../../functions';import { IAvatarProps } from '../../types';@@ -122,6 +121,7 @@ const useStyles = makeStyles()(theme => {const StatelessAvatar = ({className,color,+ iconUser,id,initials,onAvatarLoadError,@@ -212,7 +212,7 @@ const StatelessAvatar = ({style = { _getAvatarStyle() }><Iconsize = { '50%' }- src = { IconUser } />+ src = { iconUser } /></div>);};diff --git a/react/features/base/avatar/types.ts b/react/features/base/avatar/types.tsindex 0dceeb29ec..fdf7110ca6 100644--- a/react/features/base/avatar/types.ts+++ b/react/features/base/avatar/types.ts@@ -5,6 +5,11 @@ export interface IAvatarProps {*/color?: string;+ /**+ * The user icon(browser only).+ */+ iconUser?: any;+/*** Initials to be used to render the initials based avatars.*/diff --git a/react/features/speaker-stats/components/web/SpeakerStatsItem.tsx b/react/features/speaker-stats/components/web/SpeakerStatsItem.tsxindex 67697e5d79..d2a9977acd 100644--- a/react/features/speaker-stats/components/web/SpeakerStatsItem.tsx+++ b/react/features/speaker-stats/components/web/SpeakerStatsItem.tsx@@ -4,6 +4,7 @@ import React from 'react';import Avatar from '../../../base/avatar/components/Avatar';import StatelessAvatar from '../../../base/avatar/components/web/StatelessAvatar';import { getInitials } from '../../../base/avatar/functions';+import { IconUser } from '../../../base/icons/svg';import BaseTheme from '../../../base/ui/components/BaseTheme.web';import { FaceLandmarks } from '../../../face-landmarks/types';@@ -78,6 +79,7 @@ const SpeakerStatsItem = (props: IProps) => {<StatelessAvatarclassName = 'userAvatar'color = { BaseTheme.palette.ui04 }+ iconUser = { IconUser }initials = { getInitials(props.displayName) }size = { 32 } />) : (