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.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #import <SessionMessagingKit/TSAccountManager.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | NS_ASSUME_NONNULL_BEGIN | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @interface TSPreKeyManager : NSObject | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma mark - State Tracking
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | + (BOOL)isAppLockedDueToPreKeyUpdateFailures; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | + (void)incrementPreKeyUpdateFailureCount; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | + (void)clearPreKeyUpdateFailureCount; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | + (void)clearSignedPreKeyRecords; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // This should only be called from the TSPreKeyManager.operationQueue
 | 
					
						
							|  |  |  | + (void)refreshPreKeysDidSucceed; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma mark - Check/Request Initiation
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | + (void)rotateSignedPreKeyWithSuccess:(void (^)(void))successHandler failure:(void (^)(NSError *error))failureHandler; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | + (void)createPreKeysWithSuccess:(void (^)(void))successHandler failure:(void (^)(NSError *error))failureHandler; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | + (void)checkPreKeys; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | + (void)checkPreKeysIfNecessary; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | NS_ASSUME_NONNULL_END |