Use a diff type of blur one that does not flicker

This commit is contained in:
Josh Perez 2020-10-12 14:26:24 -04:00 committed by Josh Perez
parent e5fae1a346
commit fb7c1e9030
4 changed files with 24 additions and 19 deletions

View file

@ -330,7 +330,9 @@ export class CallScreen extends React.Component<PropsType, StateType> {
} else if (callState === CallState.Reconnecting) {
message = i18n('callReconnecting');
} else if (callState === CallState.Accepted && acceptedDuration) {
message = i18n('callDuration', [this.renderDuration(acceptedDuration)]);
message = i18n('callDuration', [
CallScreen.renderDuration(acceptedDuration),
]);
}
if (!message) {
@ -339,8 +341,7 @@ export class CallScreen extends React.Component<PropsType, StateType> {
return <div className="module-ongoing-call__header-message">{message}</div>;
}
// eslint-disable-next-line class-methods-use-this
private renderDuration(ms: number): string {
static renderDuration(ms: number): string {
const secs = Math.floor((ms / 1000) % 60)
.toString()
.padStart(2, '0');