Skip to content

Commit

Permalink
fix: Remove decryption step from E2EE and leave it only on room's rea…
Browse files Browse the repository at this point in the history
…dy event (#33587)
  • Loading branch information
KevLehman authored and hugocostadev committed Oct 17, 2024
1 parent 41e211f commit 9166937
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/meteor/app/e2e/client/rocketchat.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ class E2E extends Emitter {
this.log('decryptSubscriptions');
await this.decryptSubscriptions();
this.log('decryptSubscriptions -> Done');
await this.initiateDecryptingPendingMessages();
this.log('DecryptingPendingMessages -> Done');
await this.initiateKeyDistribution();
this.log('initiateKeyDistribution -> Done');
this.observeSubscriptions();
Expand Down Expand Up @@ -332,10 +330,6 @@ class E2E extends Emitter {
Object.keys(this.instancesByRoomId).map((key) => this.instancesByRoomId[key].handshake());
}

async initiateDecryptingPendingMessages() {
await Promise.all(Object.keys(this.instancesByRoomId).map((key) => this.instancesByRoomId[key].decryptPendingMessages()));
}

openSaveE2EEPasswordModal(randomPassword: string) {
imperativeModal.open({
component: SaveE2EPasswordModal,
Expand Down

0 comments on commit 9166937

Please sign in to comment.