|  |  | @ -1273,21 +1273,16 @@ typedef enum : NSUInteger { | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (message.messageType == TSOutgoingMessageAdapter) { |  |  |  |     if (message.messageType == TSOutgoingMessageAdapter) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         TSOutgoingMessage *outgoingMessage = (TSOutgoingMessage *)message.interaction; |  |  |  |         TSOutgoingMessage *outgoingMessage = (TSOutgoingMessage *)message.interaction; | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (outgoingMessage.messageState == TSOutgoingMessageStateUnsent) { |  |  |  |         if (outgoingMessage.messageState == TSOutgoingMessageStateUnsent) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return [[NSAttributedString alloc] initWithString:NSLocalizedString(@"FAILED_SENDING_TEXT", nil)]; |  |  |  |             return [[NSAttributedString alloc] initWithString:NSLocalizedString(@"MESSAGE_STATUS_FAILED", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                                                                 @"message footer for failed messages")]; | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else if (outgoingMessage.messageState == TSOutgoingMessageStateSent || |  |  |  |         } else if (outgoingMessage.messageState == TSOutgoingMessageStateSent || | 
			
		
	
		
		
			
				
					
					|  |  |  |                    outgoingMessage.messageState == TSOutgoingMessageStateDelivered) { |  |  |  |                    outgoingMessage.messageState == TSOutgoingMessageStateDelivered) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             // Show a checkmark icon. |  |  |  |             NSString *text = (outgoingMessage.messageState == TSOutgoingMessageStateSent | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             // |  |  |  |                               ? NSLocalizedString(@"MESSAGE_STATUS_SENT", | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             // TODO: It'd be nice to distinguish the "sent" and "delivered" states, |  |  |  |                                                   @"message footer for sent messages") | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             //       but JSQMessageViewController doesn't give us a great way to do so. |  |  |  |                               : NSLocalizedString(@"MESSAGE_STATUS_DELIVERED", | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             //       We don't have a great icon for the "delivered" state, |  |  |  |                                                   @"message footer for delivered messages")); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             //       we can't kern checkmarks together in a JSQMessageViewController |  |  |  |             NSAttributedString *result = [[NSAttributedString alloc] initWithString:text]; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             //       "cell bottom label", etc. |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             NSAttributedString *result = |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             [[NSAttributedString alloc] initWithString:@"N" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                             attributes:@{ |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                                          NSFontAttributeName: [UIFont ows_elegantIconsFont:10.f], |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                                          }]; |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             // Show when it's the last message in the thread |  |  |  |             // Show when it's the last message in the thread | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (indexPath.item == [self.collectionView numberOfItemsInSection:indexPath.section] - 1) { |  |  |  |             if (indexPath.item == [self.collectionView numberOfItemsInSection:indexPath.section] - 1) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -1304,7 +1299,7 @@ typedef enum : NSUInteger { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return result; |  |  |  |                 return result; | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else if (message.isMediaBeingSent) { |  |  |  |         } else if (message.isMediaBeingSent) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return [[NSAttributedString alloc] initWithString:NSLocalizedString(@"UPLOADING_MESSAGE_TEXT", |  |  |  |             return [[NSAttributedString alloc] initWithString:NSLocalizedString(@"MESSAGE_STATUS_UPLOADING", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                                                                                 @"message footer while attachment is uploading")]; |  |  |  |                                                                                 @"message footer while attachment is uploading")]; | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             OWSAssert(outgoingMessage.messageState == TSOutgoingMessageStateAttemptingOut); |  |  |  |             OWSAssert(outgoingMessage.messageState == TSOutgoingMessageStateAttemptingOut); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |