Commit fd349b21 authored by JC Brand's avatar JC Brand

Don't unnecessarily create objects for roster items

parent 3d84b3e7
......@@ -2191,6 +2191,10 @@
if (this.isSelf(item.jid)) { return; }
var model = this.get(item.jid);
if (!model) {
if ((item.subscription === 'none') && (item.ask === null)) {
// We're not interested in zombies
return;
}
is_last = false;
if (index === (items.length-1)) { is_last = true; }
this.create({
......
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