mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Save single errors returned from send functions
// FREEBIE
This commit is contained in:
@@ -153,10 +153,16 @@
|
||||
this.set({dataMessage: result.dataMessage});
|
||||
}
|
||||
this.set({sent: true});
|
||||
this.saveErrors(result.errors);
|
||||
if (result.successfulNumbers.length > 0) {
|
||||
this.sendSyncMessage();
|
||||
|
||||
if (result instanceof Error) {
|
||||
this.saveErrors(result);
|
||||
} else {
|
||||
this.saveErrors(result.errors);
|
||||
if (result.successfulNumbers.length > 0) {
|
||||
this.sendSyncMessage();
|
||||
}
|
||||
}
|
||||
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user