[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:
Christine Spang 2017-01-23 20:54:01 -08:00
parent ac6ad38296
commit 902ce10881

View file

@ -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.");
}