-
Notifications
You must be signed in to change notification settings - Fork 195
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
get resume id from server #134
Conversation
LGTM. |
IQ parsing / serialization is trivial to unit test, so do it :) |
81b12d9
to
cd81054
Compare
@coderlxn can we please have a unit test for this so we can merge it? |
@lnjX I'm not sure I understand what this does anymore, ideas? |
@@ -132,6 +132,7 @@ void QXmppStreamManagementEnabled::parse(const QDomElement &element) | |||
m_resume = resume == QString("true") || resume == QString("1"); | |||
m_max = element.attribute("max").toUInt(); | |||
m_location = element.attribute("location"); | |||
m_id = element.attribute("id"); |
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.
This only adds parsing, we also need to add this in ::toXml
.
just in case someone actually wants to use the QXmppServer ;)
@jlaine The session id needs to be parsed to be able to resume the session (using |
@jlaine What kind of unit test should I add for this pull request? Sorry, I'm not familiar with the progress of pull request. |
Unfortunately there's no test class for stream management, yet, but you could base on this test basically. It were also nice to have this new test class in a new commit. |
84168ac
to
e614dcc
Compare
Parsing of the id attribute has been added in the meantime, so this is obsolete. |
No description provided.