diff --git a/libloki/crypto.js b/libloki/crypto.js index 11108508c..50c82b631 100644 --- a/libloki/crypto.js +++ b/libloki/crypto.js @@ -359,7 +359,10 @@ ); } - const decryptFunction = type === this.TYPE.PREKEY ? this.sessionCipher.decryptPreKeyWhisperMessage : this.sessionCipher.decryptWhisperMessage; + const decryptFunction = + type === this.TYPE.PREKEY + ? this.sessionCipher.decryptPreKeyWhisperMessage + : this.sessionCipher.decryptWhisperMessage; const result = await decryptFunction(buffer, encoding); // Handle session reset