mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Avoid crash in processing incoming message if timestamp is null
This commit is contained in:
@@ -1305,6 +1305,10 @@ MessageReceiver.prototype.extend({
|
||||
// fields after the first action.
|
||||
|
||||
if (window.TIMESTAMP_VALIDATION) {
|
||||
if (!envelope.timestamp || !decrypted.timestamp) {
|
||||
throw new Error('Missing timestamp on dataMessage or envelope');
|
||||
}
|
||||
|
||||
const envelopeTimestamp = envelope.timestamp.toNumber();
|
||||
const decryptedTimestamp = decrypted.timestamp.toNumber();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user