Merge pull request #3215 from matrix-org/jryans/v1.4.0/logout-text
Remove misleading text about admins logging people out from soft logoutpull/21833/head
						commit
						64f52cac73
					
				|  | @ -21,8 +21,6 @@ import sdk from '../../../index'; | |||
| import dis from '../../../dispatcher'; | ||||
| import * as Lifecycle from '../../../Lifecycle'; | ||||
| import Modal from '../../../Modal'; | ||||
| import {ValidatedServerConfig} from "../../../utils/AutoDiscoveryUtils"; | ||||
| import SdkConfig from "../../../SdkConfig"; | ||||
| import MatrixClientPeg from "../../../MatrixClientPeg"; | ||||
| import {sendLoginRequest} from "../../../Login"; | ||||
| import url from 'url'; | ||||
|  | @ -53,24 +51,7 @@ export default class SoftLogout extends React.Component { | |||
|     constructor() { | ||||
|         super(); | ||||
| 
 | ||||
|         const defaultServerConfig: ValidatedServerConfig = SdkConfig.get()["validated_server_config"]; | ||||
| 
 | ||||
|         const hsUrl = MatrixClientPeg.get().getHomeserverUrl(); | ||||
|         const domainName = hsUrl === defaultServerConfig.hsUrl | ||||
|             ? defaultServerConfig.hsName | ||||
|             : MatrixClientPeg.getHomeserverName(); | ||||
| 
 | ||||
|         const userId = MatrixClientPeg.get().getUserId(); | ||||
|         const user = MatrixClientPeg.get().getUser(userId); | ||||
| 
 | ||||
|         const displayName = user && user.displayName !== userId | ||||
|             ? user.displayName | ||||
|             : userId.substring(1).split(':')[0]; | ||||
| 
 | ||||
|         this.state = { | ||||
|             domainName, | ||||
|             userId, | ||||
|             displayName, | ||||
|             loginView: LOGIN_VIEW.LOADING, | ||||
|             keyBackupNeeded: true, // assume we do while we figure it out (see componentWillMount)
 | ||||
|             ssoUrl: null, | ||||
|  | @ -315,23 +296,6 @@ export default class SoftLogout extends React.Component { | |||
|                     <h2> | ||||
|                         {_t("You're signed out")} | ||||
|                     </h2> | ||||
|                     <div> | ||||
|                         {_t( | ||||
|                             "Your homeserver (<strong1>%(domainName)s</strong1>) admin has signed you out of your " + | ||||
|                             "account <strong2>%(displayName)s (%(userId)s)</strong2>.", | ||||
|                             { | ||||
|                                 domainName: this.state.domainName, | ||||
|                                 displayName: this.state.displayName, | ||||
|                                 userId: this.state.userId, | ||||
|                             }, | ||||
|                             { | ||||
|                                 // XXX: It's annoying that we can't just map <strong> to two things.
 | ||||
|                                 // https://github.com/vector-im/riot-web/issues/9086
 | ||||
|                                 'strong1': (val) => <strong>{val}</strong>, | ||||
|                                 'strong2': (val) => <strong>{val}</strong>, | ||||
|                             }, | ||||
|                         )} | ||||
|                     </div> | ||||
| 
 | ||||
|                     <h3>{_t("Sign in")}</h3> | ||||
|                     <div> | ||||
|  |  | |||
|  | @ -1596,7 +1596,6 @@ | |||
|     "Sign in and regain access to your account.": "Sign in and regain access to your account.", | ||||
|     "You cannot sign in to your account. Please contact your homeserver admin for more information.": "You cannot sign in to your account. Please contact your homeserver admin for more information.", | ||||
|     "You're signed out": "You're signed out", | ||||
|     "Your homeserver (<strong1>%(domainName)s</strong1>) admin has signed you out of your account <strong2>%(displayName)s (%(userId)s)</strong2>.": "Your homeserver (<strong1>%(domainName)s</strong1>) admin has signed you out of your account <strong2>%(displayName)s (%(userId)s)</strong2>.", | ||||
|     "Clear personal data": "Clear personal data", | ||||
|     "Warning: Your personal data (including encryption keys) is still stored on this device. Clear it if you're finished using this device, or want to sign in to another account.": "Warning: Your personal data (including encryption keys) is still stored on this device. Clear it if you're finished using this device, or want to sign in to another account.", | ||||
|     "Commands": "Commands", | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 J. Ryan Stinnett
						J. Ryan Stinnett