mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
[local-sync] Don't be so strict about updating threads from messages
This is how we _add_ messages to a thread in the first place, so we cannot place the constraint that the thread must contain the message already.
This commit is contained in:
parent
ac6ad38296
commit
902ce10881
1 changed files with 0 additions and 3 deletions
|
@ -141,9 +141,6 @@ module.exports = (sequelize, Sequelize) => {
|
|||
if (message.isDraft) {
|
||||
continue;
|
||||
}
|
||||
if (!threadMessageIds.has(message.id)) {
|
||||
throw new Error("Message does not belong to thread");
|
||||
}
|
||||
if (!(message.labels instanceof Array)) {
|
||||
throw new Error("Expected message.labels to be an inflated array.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue