Add support for syncing blocked numbers
// FREEBIE
This commit is contained in:
		
					parent
					
						
							
								53f20640af
							
						
					
				
			
			
				commit
				
					
						f610233ef6
					
				
			
		
					 7 changed files with 56 additions and 2 deletions
				
			
		
							
								
								
									
										10
									
								
								js/models/blockedNumbers.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								js/models/blockedNumbers.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
/*
 | 
			
		||||
 * vim: ts=4:sw=4:expandtab
 | 
			
		||||
 */
 | 
			
		||||
(function () {
 | 
			
		||||
    'use strict';
 | 
			
		||||
    window.Whisper = window.Whisper || {};
 | 
			
		||||
    storage.isBlocked = function(number) {
 | 
			
		||||
        return storage.get('blocked', []).indexOf(number) >= 0;
 | 
			
		||||
    };
 | 
			
		||||
})();
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue