Fix bug
This commit is contained in:
		
							parent
							
								
									2ede3c0864
								
							
						
					
					
						commit
						1003fd393e
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -14,12 +14,12 @@ export default class extends Channel {
 | 
			
		|||
 | 
			
		||||
			switch (type) {
 | 
			
		||||
				case 'notification': {
 | 
			
		||||
					if (!mutedUserIds.includes(body.userId)) {
 | 
			
		||||
						this.send('notification', body);
 | 
			
		||||
					}
 | 
			
		||||
					if (mutedUserIds.includes(body.userId)) return;
 | 
			
		||||
					break;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			this.send(type, body);
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue