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
XEP-0184: Message Delivery Receipts #1304
XEP-0184: Message Delivery Receipts #1304
Conversation
b91abf0
to
0dcd0da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChaosKid42 This is great, thank you!
I have added a few comments and questions.
Would you be willing to also add tests for this?
You can add them in spec/messages.js
. The existing tests there should give you a good idea of what you need to do.
For example look here:
Line 23 in e181aaf
it("can be sent as a correction by clicking the pencil icon", |
To run the tests in that spec, you can run make serve
and then go to http://localhost:8000/tests/?spec=A%20Chat%20Message in your browser.
0dcd0da
to
e99c0d9
Compare
Next I will try to write a test for it... First test implemented. Gonna do a few more to finish it up... |
1ed16fb
to
32fca5c
Compare
I'd just like to say this code is exactly what I was after... Looking forward to seeing it in master. |
9b0b700
to
35b7b37
Compare
@ChaosKid42 Looks like there are more tests that are not aware of the |
35b7b37
to
4bff637
Compare
@jcbrand These tests work ok on my machine. Strange...:
|
44a33ce
to
5d6ab7f
Compare
@jcbrand I finished my PR. What do you think?
|
@ChaosKid42 For some reason the tests are much more flaky on Travis and there are some heisenbugs that often fail there but not locally on my own machine (or yours apparently). I've restarted Travis for now... |
@ChaosKid42 Looks like you didn't commit the updated build file The tests are run against that file, so this might be the reason why the tests fail on Travis. One more thing, in the changelog, please use the original ticket number #141 instead of this PR's number and make sure the numbers are ordered numerically. Thanks! |
5d6ab7f
to
ae48d07
Compare
@jcbrand That was the problem. Thanks! |
6c06845
to
40cec7a
Compare
40cec7a
to
b85fe52
Compare
This is an attempt to implement XEP-0184: Message Delivery Receipts.
Hope you like it. Any feedback welcome.