pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.17k stars 3.62k forks source link

hotfix: `openChatWindow` function #3291

Closed alechkos closed 3 days ago

alechkos commented 3 days ago

PR Details

The PR fixes an issue where the InterfaceController.openChatWindow function throws an error:

Uncaught TypeError: Cannot read properties of undefined (reading 'msgs')

Thank's to @BenyFilho for the bug resolution.

Related Issue

closes #3287

How Has This Been Tested

// client initialization...
await client.interface.openChatWindow('XXXXXXXXXX@c.us');

Types of changes

Checklist