Enable @typescript-eslint/explicit-member-accessibility on /src (#9785)

* Enable `@typescript-eslint/explicit-member-accessibility` on /src

* Prettier
This commit is contained in:
Michael Telatynski 2022-12-16 12:29:59 +00:00 committed by GitHub
parent 51554399fb
commit f1e8e7f140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
396 changed files with 1110 additions and 1098 deletions

View file

@ -31,7 +31,7 @@ interface IState {
export default class AudioFeed extends React.Component<IProps, IState> {
private element = createRef<HTMLAudioElement>();
constructor(props: IProps) {
public constructor(props: IProps) {
super(props);
this.state = {
@ -39,13 +39,13 @@ export default class AudioFeed extends React.Component<IProps, IState> {
};
}
componentDidMount() {
public componentDidMount() {
MediaDeviceHandler.instance.addListener(MediaDeviceHandlerEvent.AudioOutputChanged, this.onAudioOutputChanged);
this.props.feed.addListener(CallFeedEvent.NewStream, this.onNewStream);
this.playMedia();
}
componentWillUnmount() {
public componentWillUnmount() {
MediaDeviceHandler.instance.removeListener(
MediaDeviceHandlerEvent.AudioOutputChanged,
this.onAudioOutputChanged,
@ -118,7 +118,7 @@ export default class AudioFeed extends React.Component<IProps, IState> {
this.playMedia();
};
render() {
public render() {
// Do not render the audio element if there is no audio track
if (this.state.audioMuted) return null;