Skip to content

Commit

Permalink
auto-disables encrypt_comps until android supports it again.
Browse files Browse the repository at this point in the history
- only socket events were encrypted when this was enabled, so it's not a huge loss.
- We do not use the socket for most communications now anyways.
  • Loading branch information
zlshames committed Feb 16, 2023
1 parent 05c8604 commit 75b6f6f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/server/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,14 @@ class BlueBubblesServer extends EventEmitter {
this.window.minimize();
}

// Disable the encryp coms setting if it's enabled.
// This is a temporary fix until the android client supports it again.
const encryptComs = Server().repo.getConfig("encrypt_coms") as boolean;
if (encryptComs) {
this.log("Disabling encrypt coms setting...");
Server().repo.setConfig("encrypt_coms", false);
}

try {
// Restart via terminal if configured
const restartViaTerminal = Server().repo.getConfig("start_via_terminal") as boolean;
Expand Down

0 comments on commit 75b6f6f

Please sign in to comment.