Commit 4c763708 authored by JC Brand's avatar JC Brand

Bugfix. Could not register on Ejabberd 18

parent 7d7b4c7e
# Changelog # Changelog
## 3.3.2 (Unreleased)
### Bugfixes
- Could not register on Ejabberd 18. `"Missing attribute 'id' in tag qualified by namespace 'jabber:client'"`
## 3.3.1 (2018-01-18) ## 3.3.1 (2018-01-18)
### UI/UX changes ### UI/UX changes
......
...@@ -603,7 +603,8 @@ ...@@ -603,7 +603,8 @@
if (has_empty_inputs) { return; } if (has_empty_inputs) { return; }
const inputs = sizzle(':input:not([type=button]):not([type=submit])', form), const inputs = sizzle(':input:not([type=button]):not([type=submit])', form),
iq = $iq({type: "set"}).c("query", {xmlns:Strophe.NS.REGISTER}); iq = $iq({'type': 'set', 'id': _converse.connection.getUniqueId()})
.c("query", {xmlns:Strophe.NS.REGISTER});
if (this.form_type === 'xform') { if (this.form_type === 'xform') {
iq.c("x", {xmlns: Strophe.NS.XFORM, type: 'submit'}); iq.c("x", {xmlns: Strophe.NS.XFORM, type: 'submit'});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment