-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add contact_change_state event. #722
Conversation
I think that you are missing the "window.Store.Presence" |
No, its available in Store |
My bad, so the only thing to change is doublequotes to single quotes |
done |
@pedroslopez couldn't this be used to update the presence to be gotten by #553 ? You mentioned stuff about setTimeout, seems like storing the presence in some kind of variable and then accessing them by the function viable. |
Thanks for contributing! This is something that's definitely been asked for in the past. My concern with this is that, from previous experience, WhatsApp Web doesn't subscribe to the Presence of everybody, so the results of the events you're getting may be unexpected. You might want to listen for state changes of a particular user, but WhatsApp Web might not be subscribed to their presence. So, this brings up a few questions for me: Has this changed? If not, could we instead write a function to subscribe to someone's presence? How many contacts does WhatsApp Web subscribe to by default? |
Looking at this again, it's possible you can take a different approach.. Store.Conn should have an event for |
With this change you can recieve "typing" or "recording" events of your contacts