Skip to content

Commit

Permalink
Omit date if missing message
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Dec 5, 2017
1 parent d073d17 commit deab359
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChatSecure/Classes/Views/Cells/OTRConversationCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ - (void)updateDateString:(NSDate *)date

- (NSString *)dateString:(NSDate *)messageDate
{
if (!messageDate) {
return @"";
}
NSTimeInterval timeInterval = fabs([messageDate timeIntervalSinceNow]);
NSString * dateString = nil;
if (timeInterval < 60){
Expand Down

0 comments on commit deab359

Please sign in to comment.