Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(welcome): disable animated meeting name once user input is present

Shivam Saini5d10a218c593
diff --git a/react/features/welcome/components/AbstractWelcomePage.ts b/react/features/welcome/components/AbstractWelcomePage.ts
index fc84965c7a..8aef06658d 100644
--- a/react/features/welcome/components/AbstractWelcomePage.ts
+++ b/react/features/welcome/components/AbstractWelcomePage.ts
@@ -162,8 +162,7 @@ export class AbstractWelcomePage<P extends IProps> extends Component<P, IState>
const roomPlaceholder = this.state.roomPlaceholder + word.substr(0, 1);
if (word.length > 1) {
- animateTimeoutId
- = window.setTimeout(
+ animateTimeoutId = window.setTimeout(
() => {
this._animateRoomNameChanging(
word.substring(1, word.length));
@@ -238,6 +237,8 @@ export class AbstractWelcomePage<P extends IProps> extends Component<P, IState>
room: value,
insecureRoomName: Boolean(this.props._enableInsecureRoomNameWarning && value && isInsecureRoomName(value))
});
+
+ if (!value) this._updateRoomName();
}
/**
@@ -266,13 +267,17 @@ export class AbstractWelcomePage<P extends IProps> extends Component<P, IState>
const updateTimeoutId = window.setTimeout(this._updateRoomName, 10000);
this._clearTimeouts();
+
this.setState(
{
generatedRoomName,
roomPlaceholder,
updateTimeoutId
},
- () => this._animateRoomNameChanging(generatedRoomName));
+ () => {
+ if (this.state.room) this._clearTimeouts();
+ else this._animateRoomNameChanging(generatedRoomName);
+ });
}
}