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 create MUC room function #561

Merged
merged 2 commits into from
Oct 30, 2015
Merged

Fix create MUC room function #561

merged 2 commits into from
Oct 30, 2015

Conversation

ppikula
Copy link
Contributor

@ppikula ppikula commented Oct 26, 2015

This PR fixes #376

The problem was the initial_state function, which wasn't handling the case in which the create-room presence had more than one <x> subelements. To be more specific, it was crashing when the first <x> subelement wasn't exactly <x xmlns="http://jabber.org/protocol/muc"/> or the presence had no children.

@michalwski
Copy link
Contributor

How about this comment?

@ppikula
Copy link
Contributor Author

ppikula commented Oct 28, 2015

I've just checked both use cases of this function: vCard search and room configuration. Both works without this case clause. Psi's xml console prints the correct form type.

michalwski added a commit that referenced this pull request Oct 30, 2015
@michalwski michalwski merged commit b488604 into master Oct 30, 2015
@michalwski michalwski deleted the empathy-create-room branch November 30, 2015 11:07
@michalwski michalwski mentioned this pull request Dec 4, 2015
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.

Unable to creat MUC room
2 participants