Skip double save with sync message that has errors
This commit is contained in:
parent
4495a1ac67
commit
a3315bcb68
1 changed files with 2 additions and 1 deletions
|
@ -1742,7 +1742,8 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
});
|
||||
} catch (result) {
|
||||
const errors = (result && result.errors) || [new Error('Unknown error')];
|
||||
this.saveErrors(errors);
|
||||
// We don't save because we're about to save below.
|
||||
this.saveErrors(errors, { skipSave: true });
|
||||
} finally {
|
||||
await window.Signal.Data.saveMessage(this.attributes, {
|
||||
Message: window.Whisper.Message,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue