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:
		
					parent
					
						
							
								75b2c9c5de
							
						
					
				
			
			
				commit
				
					
						1b68e652cc
					
				
			
		
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -37058,6 +37058,8 @@ MessageReceiver.prototype.extend({
 | 
			
		|||
                            var ev = new Event('group');
 | 
			
		||||
                            ev.groupDetails = groupDetails;
 | 
			
		||||
                            eventTarget.dispatchEvent(ev);
 | 
			
		||||
                        }).catch(function(e) {
 | 
			
		||||
                            console.log('error processing group', groupDetails.id, e);
 | 
			
		||||
                        });
 | 
			
		||||
                })(groupDetails);
 | 
			
		||||
                groupDetails = groupBuffer.next();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue