EventIndexPanel: Move the panel from the preferences to the security tab.
This commit is contained in:
parent
4913d579e3
commit
908a00a13d
4 changed files with 24 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue