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