diff --git a/lib/push/send-utils.js b/lib/push/send-utils.js --- a/lib/push/send-utils.js +++ b/lib/push/send-utils.js @@ -166,6 +166,10 @@ for (const threadID of threadsToMessageIndices.keys()) { const threadInfo = thickRawThreadInfos[threadID]; + if (!threadInfo) { + console.log(`getPushUserInfo could not find ${threadID} in ThreadStore`); + continue; + } for (const memberInfo of threadInfo.members) { if ( !isMemberActive(memberInfo) ||