From 68e011c7424ec5dc85d67c58c6864ad6642c1bd6 Mon Sep 17 00:00:00 2001 From: icleitoncosta Date: Thu, 29 Aug 2024 20:44:36 -0300 Subject: [PATCH] fix: Fixed client.openChatAt (close #2293) --- src/api/layers/ui.layer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/layers/ui.layer.ts b/src/api/layers/ui.layer.ts index a1096d028..658b9ce4d 100644 --- a/src/api/layers/ui.layer.ts +++ b/src/api/layers/ui.layer.ts @@ -48,8 +48,9 @@ export class UILayer extends GroupLayer { public async openChatAt(chatId: string, messageId: string) { return evaluateAndReturn( this.page, - (chatId: string) => WPP.chat.openChatAt(chatId, messageId), - chatId + (chatId: string, messageId) => WPP.chat.openChatAt(chatId, messageId), + chatId, + messageId ); }