diff --git a/packages/client-sync/src/local-api/routes/contacts.js b/packages/client-sync/src/local-api/routes/contacts.js index 45c861ceb..cc6d2f995 100644 --- a/packages/client-sync/src/local-api/routes/contacts.js +++ b/packages/client-sync/src/local-api/routes/contacts.js @@ -16,6 +16,9 @@ const calculateContactScores = (messages, result) => { for (const message of messages) { const weight = getMessageWeight(message, now); for (const recipient of message.getRecipients()) { + if (!recipient.email) { + continue; + } const email = recipient.email.toLowerCase(); result[email] = result[email] ? (result[email] + weight) : weight; }