Skip to content

Commit 041e021

Browse files
committed
return message if SessionKey is not present or room is non e2e
1 parent b71ee89 commit 041e021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/encryption/encryption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class Encryption {
539539

540540
const roomE2E = await this.getRoomInstance(rid);
541541
if (!roomE2E || !roomE2E?.hasSessionKey()) {
542-
return;
542+
return message;
543543
}
544544
return roomE2E.encrypt(message);
545545
} catch {

0 commit comments

Comments
 (0)