You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JavaScript
		
	
| /* global window, textsecure */
 | |
| 
 | |
| // eslint-disable-next-line func-names
 | |
| (function() {
 | |
|   /** ***************************************
 | |
|    *** Not-yet-processed message storage ***
 | |
|    **************************************** */
 | |
|   window.textsecure = window.textsecure || {};
 | |
|   window.textsecure.storage = window.textsecure.storage || {};
 | |
| 
 | |
|   window.textsecure.storage.unprocessed = {
 | |
|     getCount() {
 | |
|       return textsecure.storage.protocol.getUnprocessedCount();
 | |
|     },
 | |
|     getAll() {
 | |
|       return textsecure.storage.protocol.getAllUnprocessed();
 | |
|     },
 | |
|     get(id) {
 | |
|       return textsecure.storage.protocol.getUnprocessedById(id);
 | |
|     },
 | |
|     add(data) {
 | |
|       return textsecure.storage.protocol.addUnprocessed(data);
 | |
|     },
 | |
|     updateAttempts(id, attempts) {
 | |
|       return textsecure.storage.protocol.updateUnprocessedAttempts(
 | |
|         id,
 | |
|         attempts
 | |
|       );
 | |
|     },
 | |
|     addDecryptedData(id, data) {
 | |
|       return textsecure.storage.protocol.updateUnprocessedWithData(id, data);
 | |
|     },
 | |
|     remove(id) {
 | |
|       return textsecure.storage.protocol.removeUnprocessed(id);
 | |
|     },
 | |
|     removeAll() {
 | |
|       return textsecure.storage.protocol.removeAllUnprocessed();
 | |
|     },
 | |
|   };
 | |
| })();
 |