Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 85153b2

Browse files
committed
Final fixes for inbox threads
1 parent 477e259 commit 85153b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Slide for Reddit/MessageCellView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class MessageCellView: UICollectionViewCell {
6565
guard let self = self, let message = self.message else { return }
6666
if self.state == .THREAD_PREVIEW {
6767
self.delegate?.showThread(id: message.name, title: message.subject)
68-
} else if !message.wasComment {
68+
} else if !message.wasComment && self.state != .IN_THREAD {
6969
self.delegate?.showThread(id: message.name, title: message.subject)
7070
} else {
7171
self.delegate?.doReply(to: message, cell: self)
@@ -203,9 +203,10 @@ class MessageCellView: UICollectionViewCell {
203203
var attrsUnread = attrs
204204
if !ActionStates.isRead(s: message) {
205205
attrsUnread[.badgeColor] = GMColor.red500Color()
206+
attrsUnread[.foregroundColor] = UIColor.white
206207
}
207208

208-
let endString = NSMutableAttributedString(string: "\(DateFormatter().timeSince(from: message.created as NSDate, numericDates: true))", attributes: attrsUnread)
209+
let endString = NSMutableAttributedString(string: "\u{00A0}\(DateFormatter().timeSince(from: message.created as NSDate, numericDates: true))\u{00A0}", attributes: attrsUnread)
209210

210211
let spacerString = NSMutableAttributedString(string: " from ", attributes: attrs)
211212
endString.append(spacerString)

0 commit comments

Comments
 (0)