EventIndexPanel: Move the panel from the preferences to the security tab.

This commit is contained in:
Damir Jelić 2020-01-21 10:06:04 +01:00
parent 4913d579e3
commit 908a00a13d
4 changed files with 24 additions and 8 deletions

View file

@ -138,8 +138,7 @@ export default class EventIndexPanel extends React.Component {
if (EventIndexPeg.get() !== null) {
eventIndexingSettings = (
<div className="mx_SettingsTab_section">
<span className="mx_SettingsTab_subheading">{_t("Encrypted search")}</span>
<div>
{
_t( "Riot is securely caching encrypted messages locally for them" +
"to appear in search results:"
@ -165,6 +164,17 @@ export default class EventIndexPanel extends React.Component {
onChange={this._onCrawlerSleepTimeChange} />
</div>
);
} else {
eventIndexingSettings = (
<div>
{
_t( "Riot can't securely cache encrypted messages locally" +
"while running in a web browser. Use Riot Desktop for" +
"encrypted messages to appear in search results."
)
}
</div>
);
}
return eventIndexingSettings;