diff options
Diffstat (limited to 'Juick/MessageCell.m')
-rw-r--r-- | Juick/MessageCell.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Juick/MessageCell.m b/Juick/MessageCell.m index ad3a849..0777dfd 100644 --- a/Juick/MessageCell.m +++ b/Juick/MessageCell.m @@ -24,7 +24,6 @@ if (self) { [self setBackgroundColor:[UIColor whiteColor]]; - self.selectionStyle = UITableViewCellSelectionStyleNone; self.avatar = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 32, 32)]; [self.avatar setBackgroundColor:[UIColor clearColor]]; @@ -154,7 +153,11 @@ self.titleLabel.text = msg.user; self.timestampLabel.text = msg.timestamp; if (msg.repliesCount > 0) { - self.summaryLabel.text = [NSString stringWithFormat:@"%@ replies by %@", msg.repliesCount, msg.repliesBy]; + if ([msg.repliesBy length] > 0) { + self.summaryLabel.text = [NSString stringWithFormat:@"%@ replies by %@", msg.repliesCount, msg.repliesBy]; + } else { + self.summaryLabel.text = [NSString stringWithFormat:@"%@ replies", msg.repliesCount]; + } } else { self.summaryLabel.text = nil; } |