diff --git a/Tusker/Screens/Conversation/ConversationTableViewController.swift b/Tusker/Screens/Conversation/ConversationTableViewController.swift index 1712423a..94a0452d 100644 --- a/Tusker/Screens/Conversation/ConversationTableViewController.swift +++ b/Tusker/Screens/Conversation/ConversationTableViewController.swift @@ -127,6 +127,7 @@ class ConversationTableViewController: EnhancedTableViewController { } else { guard let cell = tableView.dequeueReusableCell(withIdentifier: "statusCell", for: indexPath) as? TimelineStatusTableViewCell else { fatalError() } cell.showStatusAutomatically = showStatusesAutomatically + cell.showReplyIndicator = false cell.delegate = self cell.updateUI(statusID: id, state: state) return cell diff --git a/Tusker/Screens/Timeline/TimelineTableViewController.swift b/Tusker/Screens/Timeline/TimelineTableViewController.swift index b88ceafb..025c9826 100644 --- a/Tusker/Screens/Timeline/TimelineTableViewController.swift +++ b/Tusker/Screens/Timeline/TimelineTableViewController.swift @@ -108,6 +108,7 @@ class TimelineTableViewController: EnhancedTableViewController { let (id, state) = timelineSegments[indexPath.section][indexPath.row] cell.delegate = self + cell.updateUI(statusID: id, state: state) return cell diff --git a/Tusker/Views/Status/ConversationMainStatusTableViewCell.xib b/Tusker/Views/Status/ConversationMainStatusTableViewCell.xib index 7e49188c..856b6253 100644 --- a/Tusker/Views/Status/ConversationMainStatusTableViewCell.xib +++ b/Tusker/Views/Status/ConversationMainStatusTableViewCell.xib @@ -38,13 +38,14 @@ - - + + + @@ -238,6 +239,7 @@ + diff --git a/Tusker/Views/Status/TimelineStatusTableViewCell.swift b/Tusker/Views/Status/TimelineStatusTableViewCell.swift index 0b79b5ce..b494c6e6 100644 --- a/Tusker/Views/Status/TimelineStatusTableViewCell.swift +++ b/Tusker/Views/Status/TimelineStatusTableViewCell.swift @@ -22,11 +22,13 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell { @IBOutlet weak var reblogLabel: EmojiLabel! @IBOutlet weak var timestampLabel: UILabel! @IBOutlet weak var pinImageView: UIImageView! + @IBOutlet weak var replyImageView: UIImageView! var reblogStatusID: String? var rebloggerID: String? - var showPinned: Bool = false + var showPinned = false + var showReplyIndicator = true var updateTimestampWorkItem: DispatchWorkItem? @@ -82,9 +84,13 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell { updateTimestamp() - let pinned = status.pinned ?? false - pinImageView.isHidden = !(pinned && showPinned) - timestampLabel.isHidden = !pinImageView.isHidden + if showPinned { + let pinned = status.pinned ?? false + timestampLabel.isHidden = pinned + pinImageView.isHidden = !pinned + } + + replyImageView.isHidden = !showReplyIndicator || status.inReplyToID == nil } @objc override func preferencesChanged() { diff --git a/Tusker/Views/Status/TimelineStatusTableViewCell.xib b/Tusker/Views/Status/TimelineStatusTableViewCell.xib index 95af24c2..0c37b42d 100644 --- a/Tusker/Views/Status/TimelineStatusTableViewCell.xib +++ b/Tusker/Views/Status/TimelineStatusTableViewCell.xib @@ -152,11 +152,21 @@ - + + + + + + + + + + + @@ -164,9 +174,12 @@ + + + @@ -207,6 +220,7 @@ + @@ -216,6 +230,7 @@ +