hide local aliases by default

This commit is contained in:
Bruno Windels 2020-03-09 16:32:13 +01:00
parent 08a31886a7
commit 7079d70f18
2 changed files with 5 additions and 1 deletions

View file

@ -336,7 +336,6 @@ export default class AliasSettings extends React.Component {
return (
<div className='mx_AliasSettings'>
{canonicalAliasSection}
{localAliasesList}
<datalist id="mx_AliasSettings_altRecommendations">
{this._getLocalNonAltAliases().map(alias => {
return <option value={alias} key={alias} />;
@ -359,6 +358,10 @@ export default class AliasSettings extends React.Component {
'New address (e.g. #foo:domain)',
)}
/>
<details>
<summary>{_t('Local addresses (unmoderated content)')}</summary>
{localAliasesList}
</details>
</div>
);
}

View file

@ -1156,6 +1156,7 @@
"Alternative addresses for this room:": "Alternative addresses for this room:",
"This room has no alternative addresses": "This room has no alternative addresses",
"New address (e.g. #foo:domain)": "New address (e.g. #foo:domain)",
"Local addresses (unmoderated content)": "Local addresses (unmoderated content)",
"Error updating flair": "Error updating flair",
"There was an error updating the flair for this room. The server may not allow it or a temporary error occurred.": "There was an error updating the flair for this room. The server may not allow it or a temporary error occurred.",
"Invalid community ID": "Invalid community ID",