Commit 2f2b2cea authored by JC Brand's avatar JC Brand

Bugfix. Don't create occupants without nick/JID

parent 09bb6b49
......@@ -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;
}
......@@ -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);
......
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