|  |  |  | @ -68,6 +68,10 @@ NSUInteger TSCallCurrentSchemaVersion = 1; | 
		
	
		
			
				|  |  |  |  |             return NSLocalizedString(@"OUTGOING_CALL", @""); | 
		
	
		
			
				|  |  |  |  |         case RPRecentCallTypeMissed: | 
		
	
		
			
				|  |  |  |  |             return NSLocalizedString(@"MISSED_CALL", @""); | 
		
	
		
			
				|  |  |  |  |         case RPRecentCallTypeOutgoingIncomplete: | 
		
	
		
			
				|  |  |  |  |             return NSLocalizedString(@"OUTGOING_INCOMPLETE_CALL", @""); | 
		
	
		
			
				|  |  |  |  |         case RPRecentCallTypeIncomingIncomplete: | 
		
	
		
			
				|  |  |  |  |             return NSLocalizedString(@"INCOMING_INCOMPLETE_CALL", @""); | 
		
	
		
			
				|  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
	
		
			
				
					|  |  |  | @ -91,6 +95,26 @@ NSUInteger TSCallCurrentSchemaVersion = 1; | 
		
	
		
			
				|  |  |  |  |     }]; | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | #pragma mark - Methods | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | - (void)updateCallType:(RPRecentCallType)callType | 
		
	
		
			
				|  |  |  |  | { | 
		
	
		
			
				|  |  |  |  |     DDLogInfo(@"%@ updating call type of call: %d with uniqueId: %@ which has timestamp: %llu", | 
		
	
		
			
				|  |  |  |  |         self.tag, | 
		
	
		
			
				|  |  |  |  |         (int)self.callType, | 
		
	
		
			
				|  |  |  |  |         self.uniqueId, | 
		
	
		
			
				|  |  |  |  |         self.timestamp); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     _callType = callType; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     [self.dbConnection readWriteWithBlock:^(YapDatabaseReadWriteTransaction *_Nonnull transaction) { | 
		
	
		
			
				|  |  |  |  |         [self saveWithTransaction:transaction]; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         // redraw any thread-related unread count UI. | 
		
	
		
			
				|  |  |  |  |         [self touchThreadWithTransaction:transaction]; | 
		
	
		
			
				|  |  |  |  |     }]; | 
		
	
		
			
				|  |  |  |  | } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | #pragma mark - Logging | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | + (NSString *)tag | 
		
	
	
		
			
				
					|  |  |  | 
 |