Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/lib/encryption/encryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class Encryption {

const roomE2E = await this.getRoomInstance(rid);
if (!roomE2E || !roomE2E?.hasSessionKey()) {
return;
return message;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have tests for this besides e2e ones, but we need to test this very carefully not to introduce regressions.
There's probably a reason that return is empty.

}
return roomE2E.encrypt(message);
} catch {
Expand Down
Loading