Use generic language in session load status

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-15 12:26:45 +05:30
parent 3fa955e594
commit 683d2c21eb

View File

@ -114,15 +114,15 @@ export class SessionLoadViewModel extends ViewModel {
case LoadStatus.NotLoading: case LoadStatus.NotLoading:
return `Preparing…`; return `Preparing…`;
case LoadStatus.Login: case LoadStatus.Login:
return `Checking your login and password`; return `Checking your credentials`;
case LoadStatus.LoginFailed: case LoadStatus.LoginFailed:
switch (sc.loginFailure) { switch (sc.loginFailure) {
case LoginFailure.LoginFailure: case LoginFailure.LoginFailure:
return `Your username and/or password don't seem to be correct.`; return `Your credentials don't seem to be correct.`;
case LoginFailure.Connection: case LoginFailure.Connection:
return `Can't connect to ${this._homeserver}.`; return `Can't connect to ${this._homeserver}.`;
case LoginFailure.Unknown: case LoginFailure.Unknown:
return `Something went wrong while checking your login and password.`; return `Something went wrong while checking your credentials.`;
} }
break; break;
case LoadStatus.SessionSetup: case LoadStatus.SessionSetup: