Slow down registration process

This commit is contained in:
Germain Souquet 2021-06-15 10:24:07 +01:00
parent 2b2e83b9e7
commit d5f7f524e1

View file

@ -1953,6 +1953,12 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
// Create and start the client // Create and start the client
await Lifecycle.setLoggedIn(credentials); await Lifecycle.setLoggedIn(credentials);
await this.postLoginSetup(); await this.postLoginSetup();
// artifically slowing down the registration
await (new Promise((resolve) => {
setTimeout(resolve, 1337);
}));
PerformanceMonitor.instance.stop(PerformanceEntryNames.LOGIN); PerformanceMonitor.instance.stop(PerformanceEntryNames.LOGIN);
PerformanceMonitor.instance.stop(PerformanceEntryNames.REGISTER); PerformanceMonitor.instance.stop(PerformanceEntryNames.REGISTER);
}; };