Update WhatsappDirectLine.ts

This commit is contained in:
Rodrigo Rodriguez 2018-10-16 10:19:34 -03:00 committed by GitHub
parent 4d9ba23fdd
commit 9f8bab3a6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}
}