Slow down registration process
This commit is contained in:
parent
2b2e83b9e7
commit
d5f7f524e1
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue