Bugfix. Could not register on Ejabberd 18

This commit is contained in:
JC Brand 2018-01-22 09:50:24 +01:00
parent 7d7b4c7e75
commit 4c76370819
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# 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)
### UI/UX changes

View File

@ -603,7 +603,8 @@
if (has_empty_inputs) { return; }
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') {
iq.c("x", {xmlns: Strophe.NS.XFORM, type: 'submit'});