mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Bullet-proofing export scenarios: null attachments, no msgreceiver
FREEBIE
This commit is contained in:
@@ -334,7 +334,7 @@
|
||||
Whisper.events.trigger('reconnectTimer');
|
||||
} else {
|
||||
console.log('offline');
|
||||
messageReceiver.close();
|
||||
if (messageReceiver) { messageReceiver.close(); }
|
||||
window.addEventListener('online', init);
|
||||
}
|
||||
return;
|
||||
|
||||
@@ -369,7 +369,7 @@
|
||||
var jsonString = JSON.stringify(stringify(message));
|
||||
stream.write(jsonString);
|
||||
|
||||
if (attachments.length) {
|
||||
if (attachments && attachments.length) {
|
||||
var process = function() {
|
||||
return writeAttachments(dir, name, messageId, attachments);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user