mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
only show mention indicator for group chats
This commit is contained in:
parent
7e89c28038
commit
fc4fcae991
|
@ -200,7 +200,7 @@ final class ConversationCell : UITableViewCell {
|
||||||
unreadCountLabel.text = unreadCount < 100 ? "\(unreadCount)" : "99+"
|
unreadCountLabel.text = unreadCount < 100 ? "\(unreadCount)" : "99+"
|
||||||
let fontSize = (unreadCount < 100) ? Values.verySmallFontSize : 8
|
let fontSize = (unreadCount < 100) ? Values.verySmallFontSize : 8
|
||||||
unreadCountLabel.font = .boldSystemFont(ofSize: fontSize)
|
unreadCountLabel.font = .boldSystemFont(ofSize: fontSize)
|
||||||
hasMentionView.isHidden = !threadViewModel.hasUnreadMentions
|
hasMentionView.isHidden = !(threadViewModel.hasUnreadMentions && thread.isGroupThread())
|
||||||
profilePictureView.update(for: thread)
|
profilePictureView.update(for: thread)
|
||||||
displayNameLabel.text = getDisplayName()
|
displayNameLabel.text = getDisplayName()
|
||||||
timestampLabel.text = DateUtil.formatDate(forDisplay: threadViewModel.lastMessageDate)
|
timestampLabel.text = DateUtil.formatDate(forDisplay: threadViewModel.lastMessageDate)
|
||||||
|
|
Loading…
Reference in a new issue