Skip to content

Commit

Permalink
update @ProtonMail web clients: ensure "encrypted search" unavailability
Browse files Browse the repository at this point in the history
* Enabling @ProtonMail's "encrypted search" feature in the app doesn't make sense since the app goes with in-memory only browser storages (including "indexedDb" storage). So the app will start with a clean in-browser storages on every start.
* The app comes with its own full-text search capabilities, see "local store" point in https://github.com/vladimiry/ElectronMail/wiki/FAQ. The app also supports the code-based search which allows unlimited messages scanning capabilities, see #257.
  • Loading branch information
vladimiry committed May 10, 2021
1 parent 45a0d7c commit 6ee25de
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions patches/protonmail/proton-mail.patch
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,31 @@ index 3f222f7..98e9cfe 100644
{showToolbar && (
<Toolbar
labelID={labelID}

diff --git a/src/app/components/header/AdvancedSearchDropdown.tsx b/src/app/components/header/AdvancedSearchDropdown.tsx
index 0ac0bc5..bea1c9b 100644
--- a/src/app/components/header/AdvancedSearchDropdown.tsx
+++ b/src/app/components/header/AdvancedSearchDropdown.tsx
@@ -330,7 +330,7 @@ const AdvancedSearchDropdown = ({ keyword: fullInput = '', isNarrow, handleCachi
);

// Switches
- const showEncryptedSearch = !isMobile() && !!esFeature && !!esFeature.Value && !!isPaid(user);
+ const showEncryptedSearch = false;
const showAdvancedSearch = !showEncryptedSearch || showMore;
const showProgress = indexKeyExists(user.ID) && esEnabled && (isBuilding || isRefreshing);
const showSubTitleSection = wasIndexingDone(user.ID) && esEnabled && !isRefreshing && isDBLimited;

diff --git a/src/app/containers/EncryptedSearchProvider.tsx b/src/app/containers/EncryptedSearchProvider.tsx
index 7ba1277..ac4fd64 100644
--- a/src/app/containers/EncryptedSearchProvider.tsx
+++ b/src/app/containers/EncryptedSearchProvider.tsx
@@ -527,7 +527,7 @@ const EncryptedSearchProvider = ({ children }: Props) => {
const t1 = performance.now();
const { dbExists, esEnabled, isCacheReady } = esDBStatus;

- if (!dbExists || !esEnabled) {
+ if (true) {
return false;
}

0 comments on commit 6ee25de

Please sign in to comment.