Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chat opening methods accept a Wid param #2411

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gekkedev
Copy link
Contributor

@gekkedev gekkedev commented Nov 6, 2024

These 2 methods appear to support Wid as input param. References from wa-js:

Additional change: The return type of getActiveChat() appears to be:

Promise<import("@wppconnect/wa-js/dist/whatsapp").ChatModel>

but VSCode and tsc disagree with me (not knowing the type (imported by and imported library from a different library, maybe that's why):

error TS2740: Type 'Promise<any>' is missing the following properties from type 'Chat': id, pendingMsgs, lastReceivedKey, t, and 23 more.

Feel free to revert 9c30eec if there is a better solution (i.e. if fixing it on wa-js side is possible).

@gekkedev gekkedev closed this Nov 6, 2024
@gekkedev gekkedev reopened this Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant