|  |  | @ -2083,14 +2083,11 @@ typedef enum : NSUInteger { | 
			
		
	
		
		
			
				
					
					|  |  |  |     // Currently, we update thread and message state every time |  |  |  |     // Currently, we update thread and message state every time | 
			
		
	
		
		
			
				
					
					|  |  |  |     // the database is modified.  That doesn't seem optimal, but |  |  |  |     // the database is modified.  That doesn't seem optimal, but | 
			
		
	
		
		
			
				
					
					|  |  |  |     // in practice it's efficient enough. |  |  |  |     // in practice it's efficient enough. | 
			
		
	
		
		
			
				
					
					|  |  |  |     // |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     //  |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     dispatch_async(dispatch_get_main_queue(), ^{ |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         [self updateContents]; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | - (void)updateContents { |  |  |  |     // We need to `beginLongLivedReadTransaction` before we update our | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // models in order to jump to the most recent commit. | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     NSArray *notifications = [self.uiDatabaseConnection beginLongLivedReadTransaction]; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     [self updateBackButtonAsync]; |  |  |  |     [self updateBackButtonAsync]; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (isGroupConversation) { |  |  |  |     if (isGroupConversation) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -2104,8 +2101,6 @@ typedef enum : NSUInteger { | 
			
		
	
		
		
			
				
					
					|  |  |  |         [self setNavigationTitle]; |  |  |  |         [self setNavigationTitle]; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     NSArray *notifications = [self.uiDatabaseConnection beginLongLivedReadTransaction]; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (![[self.uiDatabaseConnection ext:TSMessageDatabaseViewExtensionName] |  |  |  |     if (![[self.uiDatabaseConnection ext:TSMessageDatabaseViewExtensionName] | 
			
		
	
		
		
			
				
					
					|  |  |  |             hasChangesForNotifications:notifications]) { |  |  |  |             hasChangesForNotifications:notifications]) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         [self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { |  |  |  |         [self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |