-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat(chat states): Send chat state (XEP-0085) #98
Conversation
Opt-out for composing/pauses/active states Opt-in for inactive state Save user preferences to local storage And add icons to presence controller
I have to admit I don't know your framework very much, and don't know this feature really well either. Because you have an option not to send inactive states, I guess you'll want to replace every I tried to run your branch but the stars won't align today and nothing is working. :( |
When the user click on another room or contact chat, If he opt-in the "send inactive chat state", it will send For composing (and paused) states it is when user is typing (and after a delay), only if the user does not opt-out for it. I hope I didn't break anything. I will attach a release.tar.gz in few hours for testing. |
Here the draft release xmpp-web-57-send-chat-states-xep-0085.tar.gz Also the docker image: |
Looks like it's working alright! It's just sending chatstates right? Not reading. |
I realized it's not "clearing" the |
Yes it just do this 😄 Yes it leaves in |
Pseudo code :
|
The issue with leaving the As for "reading", I meant displaying what other clients send you. And I don't think you do (and that's ok!) |
I agree it is not great, but it would only appears when a user leave unfinished his message without sending or erasing (the |
Opt-out for composing/pauses/active states
Opt-in for inactive state
Save user preferences to local storage
And add icons to presence controller
#57