Skip to content

Commit

Permalink
regression: Fix E2E_Enable_Encrypt_Files backwards compatibility (#5858)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello authored Sep 6, 2024
1 parent 083e022 commit 61dff35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/encryption/encryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class Encryption {
}

const { E2E_Enable_Encrypt_Files } = store.getState().settings;
if (!subscription.encrypted || !E2E_Enable_Encrypt_Files) {
if (!subscription.encrypted || (E2E_Enable_Encrypt_Files !== undefined && !E2E_Enable_Encrypt_Files)) {
// Send a non encrypted message
return { file };
}
Expand Down

0 comments on commit 61dff35

Please sign in to comment.