|  |  | @ -76,7 +76,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |       return { |  |  |  |       return { | 
			
		
	
		
		
			
				
					
					|  |  |  |         unreadCount: 0, |  |  |  |         unreadCount: 0, | 
			
		
	
		
		
			
				
					
					|  |  |  |         verified: textsecure.storage.protocol.VerifiedStatus.DEFAULT, |  |  |  |         verified: textsecure.storage.protocol.VerifiedStatus.DEFAULT, | 
			
		
	
		
		
			
				
					
					|  |  |  |         keyExchangeStatus: 'none' |  |  |  |         keyExchangeCompleted: false, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       }; | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -398,9 +398,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         return contact.isVerified(); |  |  |  |         return contact.isVerified(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getKeyExchangeStatus() { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       return this.get('keyExchangeStatus') || 'none'; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     isKeyExchangeCompleted() { |  |  |  |     isKeyExchangeCompleted() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (!this.isPrivate()) { |  |  |  |       if (!this.isPrivate()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         throw new Error( |  |  |  |         throw new Error( | 
			
		
	
	
		
		
			
				
					|  |  | @ -412,22 +409,16 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         return true; |  |  |  |         return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       return this.getKeyExchangeStatus() == 'completed'; |  |  |  |       return this.get('keyExchangeCompleted') || false; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     setKeyExchangeStatus(status) { |  |  |  |     setKeyExchangeCompleted(completed) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       if (typeof status !== 'string') { |  |  |  |       if (typeof completed !== 'boolean') { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         throw new Error( |  |  |  |         throw new Error( | 
			
		
	
		
		
			
				
					
					|  |  |  |           'setKeyExchangeStatus expects a string' |  |  |  |           'setKeyExchangeCompleted expects a bool' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         ); |  |  |  |         ); | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       status = status.toLowerCase(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |        |  |  |  |        | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (['none', 'ongoing', 'completed'].indexOf(status) < 0) { |  |  |  |       this.set({ keyExchangeCompleted: completed }); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         throw new Error( |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           'unknown string value given to setKeyExchangeStatus' |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         ); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.set({ keyExchangeStatus: status }); |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     isUnverified() { |  |  |  |     isUnverified() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.isPrivate()) { |  |  |  |       if (this.isPrivate()) { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |