Whatsapp test changed to all netshoes bots
This commit is contained in:
parent
6b254e1aad
commit
bc41a8c18c
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue