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: Fix call event listener name + Added Call example #1886

Merged
merged 2 commits into from
Dec 23, 2022
Merged

Conversation

PurpShell
Copy link
Sponsor Collaborator

PR Details

The event listener 'onIncomingCall' was incorrectly sending to 'incoming_call' rather than 'call'.
And I've also added an example to help understand the feature.

Motivation and Context

It will allow for a more uniform typing, as the TS declaration uses 'call'

How Has This Been Tested

I have tested this fix locally on my fork of the project.

Types of changes

  • Dependency change
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • I have updated the documentation accordingly (index.d.ts).

Copy link
Collaborator

@aliyss aliyss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tuyuribr tuyuribr merged commit a7b77e1 into main Dec 23, 2022
@tuyuribr tuyuribr deleted the fix-calls branch December 23, 2022 15:10
dlimars pushed a commit to somosversotech/whatsapp-web.js that referenced this pull request Feb 22, 2023
)

* fix: bugfix + example

* relocate global variable
@DiegoFelipe
Copy link

LGTM - Fixed

Belfio pushed a commit to Belfio/whatsapp-web.js that referenced this pull request Jan 9, 2024
)

* fix: bugfix + example

* relocate global variable
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.

None yet

4 participants