EventIndexPanel: Add a separate message for the case where Seshat is missing.

This commit is contained in:
Damir Jelić 2020-01-24 15:26:54 +01:00
parent 2252f48e04
commit 47999c2e46
2 changed files with 17 additions and 0 deletions

View file

@ -140,6 +140,22 @@ export default class EventIndexPanel extends React.Component {
</div>
</div>
);
} else if (EventIndexPeg.platformHasSupport() && !EventIndexPeg.supportIsInstalled()) {
eventIndexingSettings = (
<div>
{
_t( "Riot is missing some components required for securely " +
"caching encrypted messages locally. If you'd like to " +
"experiment with this feature, build a custom Riot Desktop " +
"with <nativeLink>search components added</nativeLink>.",
{},
{
'nativeLink': (sub) => <a href="https://github.com/vector-im/riot-web/blob/develop/docs/native-node-modules.md#adding-seshat-for-search-in-e2e-encrypted-rooms">{sub}</a>,
},
)
}
</div>
);
} else {
eventIndexingSettings = (
<div>