Bugfix. Don't create occupants without nick/JID

This commit is contained in:
JC Brand 2018-09-10 08:11:09 +02:00
parent 09bb6b494d
commit 2f2b2ceaf2
2 changed files with 2 additions and 2 deletions

2
dist/converse.js vendored
View File

@ -70817,7 +70817,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
*/
const data = this.parsePresence(pres);
if (data.type === 'error') {
if (data.type === 'error' || !data.jid && !data.nick) {
return true;
}

View File

@ -806,7 +806,7 @@
* (XMLElement) pres: The presence stanza
*/
const data = this.parsePresence(pres);
if (data.type === 'error') {
if (data.type === 'error' || (!data.jid && !data.nick)) {
return true;
}
const occupant = this.occupants.findOccupant(data);