mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
Ensure that we capture sender even if thrown error is falsey
This commit is contained in:
@@ -416,6 +416,11 @@ SecretSessionCipher.prototype = {
|
||||
content: await _decryptWithUnidentifiedSenderMessage(content),
|
||||
};
|
||||
} catch (error) {
|
||||
if (!error) {
|
||||
// eslint-disable-next-line no-ex-assign
|
||||
error = new Error('Decryption error was falsey!');
|
||||
}
|
||||
|
||||
error.sender = address;
|
||||
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user