new(all): Custom Domain support per bot.

This commit is contained in:
rodrigorodriguez 2022-10-09 17:28:46 -03:00
parent 25342e90fe
commit a12c3383a1

View file

@ -204,6 +204,9 @@ export class WhatsappDirectLine extends GBService {
client.on('authenticated', async () => { client.on('authenticated', async () => {
this.browserWSEndpoint = client.pupBrowser.wsEndpoint(); this.browserWSEndpoint = client.pupBrowser.wsEndpoint();
// Keeps the chat list cleaned.
const chats = await client.getChats(); const chats = await client.getChats();
await CollectionUtil.asyncForEach(chats, async chat => { await CollectionUtil.asyncForEach(chats, async chat => {