fixnomissingchan

This commit is contained in:
reality 2015-02-18 16:12:48 +00:00
parent 77e67b637b
commit d84b94f050

View File

@ -68,16 +68,18 @@ console.log('removing ' + uPart);
}); });
}, function() { }, function() {
// Queue notifies for offline ops // Queue notifies for offline ops
_.each(offlineOps, function(op) { if(!_.include(this.config.noMissingChans, cName)) {
if(!this.pending[op.id]) this.pending[op.id] = []; _.each(offlineOps, function(op) {
this.pending[op.id].push({ if(!this.pending[op.id]) this.pending[op.id] = [];
'time': new Date().getTime(), this.pending[op.id].push({
'channel': cName, 'time': new Date().getTime(),
'user': user.id, 'channel': cName,
'message': message 'user': user.id,
}); 'message': message
this.pNotify[op.id] = true; });
}, this); this.pNotify[op.id] = true;
}, this);
}
// Send notifies to online ops // Send notifies to online ops
ops = _.difference(ops, _.keys(offlineOps)); ops = _.difference(ops, _.keys(offlineOps));