Fire group sync completion event despite errors
Sometimes an error is thrown while processing groups from a group sync message. We still want to fire the groupsync event when we're done handling all the data, even if some of it was bad.
This commit is contained in:
@@ -37058,6 +37058,8 @@ MessageReceiver.prototype.extend({
|
|||||||
var ev = new Event('group');
|
var ev = new Event('group');
|
||||||
ev.groupDetails = groupDetails;
|
ev.groupDetails = groupDetails;
|
||||||
eventTarget.dispatchEvent(ev);
|
eventTarget.dispatchEvent(ev);
|
||||||
|
}).catch(function(e) {
|
||||||
|
console.log('error processing group', groupDetails.id, e);
|
||||||
});
|
});
|
||||||
})(groupDetails);
|
})(groupDetails);
|
||||||
groupDetails = groupBuffer.next();
|
groupDetails = groupBuffer.next();
|
||||||
|
@@ -244,6 +244,8 @@ MessageReceiver.prototype.extend({
|
|||||||
var ev = new Event('group');
|
var ev = new Event('group');
|
||||||
ev.groupDetails = groupDetails;
|
ev.groupDetails = groupDetails;
|
||||||
eventTarget.dispatchEvent(ev);
|
eventTarget.dispatchEvent(ev);
|
||||||
|
}).catch(function(e) {
|
||||||
|
console.log('error processing group', groupDetails.id, e);
|
||||||
});
|
});
|
||||||
})(groupDetails);
|
})(groupDetails);
|
||||||
groupDetails = groupBuffer.next();
|
groupDetails = groupBuffer.next();
|
||||||
|
Reference in New Issue
Block a user