From 4900765f20a7c879e597ce01ebcce05bf244006b Mon Sep 17 00:00:00 2001 From: Cleiton Carvalho Date: Fri, 24 Mar 2023 22:14:32 -0300 Subject: [PATCH] fix: Fixed multiple inChat emit events (#1598) --- src/api/layers/host.layer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/layers/host.layer.ts b/src/api/layers/host.layer.ts index 9ec8ce457..cc1ad8281 100644 --- a/src/api/layers/host.layer.ts +++ b/src/api/layers/host.layer.ts @@ -214,7 +214,7 @@ export class HostLayer { } protected async checkInChat() { - const inChat = isInsideChat(this.page).catch(() => null); + const inChat = await isInsideChat(this.page).catch(() => null); this.isInChat = !!inChat;