adjust the disappearing message subtitle UI

pull/941/head
Ryan Zhao 3 years ago
parent 5c345174c1
commit 4169ee5c4f

@ -222,7 +222,6 @@ final class ConversationTitleView: UIView {
slides.append(self?.userCountLabel) slides.append(self?.userCountLabel)
} }
// TODO: Disappearing message settings
if let config = disappearingMessagesConfig, config.isEnabled == true { if let config = disappearingMessagesConfig, config.isEnabled == true {
let imageAttachment = NSTextAttachment() let imageAttachment = NSTextAttachment()
imageAttachment.image = UIImage(systemName: "timer")?.withTint(textPrimary) imageAttachment.image = UIImage(systemName: "timer")?.withTint(textPrimary)
@ -237,7 +236,7 @@ final class ConversationTitleView: UIView {
.appending(string: " ") .appending(string: " ")
.appending(string: config.type == .disappearAfterRead ? "DISAPPERING_MESSAGES_TYPE_AFTER_READ_TITLE".localized() : "DISAPPERING_MESSAGES_TYPE_AFTER_SEND_TITLE".localized()) .appending(string: config.type == .disappearAfterRead ? "DISAPPERING_MESSAGES_TYPE_AFTER_READ_TITLE".localized() : "DISAPPERING_MESSAGES_TYPE_AFTER_SEND_TITLE".localized())
.appending(string: " - ") .appending(string: " - ")
.appending(string: config.durationString) .appending(string: floor(config.durationSeconds).formatted(format: .short))
self?.disappearingMessageSettingLabel.isHidden = false self?.disappearingMessageSettingLabel.isHidden = false
slides.append(self?.disappearingMessageSettingLabel) slides.append(self?.disappearingMessageSettingLabel)
} }

Loading…
Cancel
Save