wppconnect-team / wppconnect

WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination
https://wppconnect.io
Other
1.83k stars 318 forks source link

Closing chats after opening #2271

Closed gekkedev closed 2 weeks ago

gekkedev commented 1 month ago

There's a method to visually open a chat in the WhatsappWeb instance: https://github.com/wppconnect-team/wppconnect/blob/135805324b04479f2ea7811620525d8a750ca05a/src/api/layers/ui.layer.ts#L34 Now, since there's no closeChat() method, I wonder if there is any argument we can pass in to close the opened chat again.

icleitoncosta commented 1 month ago

There isn't a specific function to close the chat, but I will transfer the issue to WAJS to implement it in the library later.

devactivity-app[bot] commented 1 month ago

@gekkedev, ⭐3 XP earned, 🏆First Issue Created completed, 💪Level 4 achieved! Contribute more to raise your XP/Level, complete challenges for extra achievements! [Sign up for personal dashboard]

icon
icleitoncosta commented 1 month ago

I Already implemented by commit https://github.com/wppconnect-team/wa-js/commit/192e4162d468e188ab55d9d7894fcbbcbaf70c75

Now is necessary implement in lib and server, i will transfer this issue for LIB

gekkedev commented 1 month ago

thanks; I prepared a PR with the wrapper function. I only tested the WPP method so far (works well): image