Whatsapp test changed to all netshoes bots

This commit is contained in:
Jorge Ramos 2018-08-19 05:56:38 -03:00
parent 6b254e1aad
commit bc41a8c18c

View file

@ -204,7 +204,8 @@ export class WhatsappDirectLine extends GBService {
// Ignore own messages.
// TODO: this.botId instead of "general-bot-9672a8d3"
activities = activities.filter((m) => { return (m.from.id === "GeneralBot-Netshoes" || m.from.id.includes("4vqtLx3cFJgBAELkRib2K8")) && m.type === "message" });
activities = activities.filter((m) => {
return (m.from.id.substr(0, 19) === "GeneralBot-Netshoes" || m.from.id.includes("4vqtLx3cFJgBAELkRib2K8")) && m.type === "message" });
if (activities.length) {