Update WhatsappDirectLine.ts
This commit is contained in:
parent
4d9ba23fdd
commit
9f8bab3a6b
1 changed files with 3 additions and 3 deletions
|
@ -202,8 +202,8 @@ export class WhatsappDirectLine extends GBService {
|
|||
if (activities && activities.length) {
|
||||
|
||||
// Ignore own messages.
|
||||
// TODO: this.botId instead of "general-bot-9672a8d3"
|
||||
activities = activities.filter((m) => { return (m.from.id === "GeneralBots") && m.type === "message" })
|
||||
|
||||
activities = activities.filter((m) => { return (m.from.id === "GeneralBots") && m.type === "message" })
|
||||
|
||||
if (activities.length) {
|
||||
|
||||
|
@ -265,4 +265,4 @@ export class WhatsappDirectLine extends GBService {
|
|||
|
||||
const result = await request.get(options)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue