|
|
@ -29,6 +29,7 @@ final class ConversationTitleView: UIView {
|
|
|
|
private lazy var titleLabel: UILabel = {
|
|
|
|
private lazy var titleLabel: UILabel = {
|
|
|
|
let result: UILabel = UILabel()
|
|
|
|
let result: UILabel = UILabel()
|
|
|
|
result.accessibilityIdentifier = "Conversation header name"
|
|
|
|
result.accessibilityIdentifier = "Conversation header name"
|
|
|
|
|
|
|
|
result.accessibilityLabel = "Conversation header name"
|
|
|
|
result.isAccessibilityElement = true
|
|
|
|
result.isAccessibilityElement = true
|
|
|
|
result.font = .boldSystemFont(ofSize: Values.mediumFontSize)
|
|
|
|
result.font = .boldSystemFont(ofSize: Values.mediumFontSize)
|
|
|
|
result.themeTextColor = .textPrimary
|
|
|
|
result.themeTextColor = .textPrimary
|
|
|
@ -161,7 +162,7 @@ final class ConversationTitleView: UIView {
|
|
|
|
labelInfos.append(
|
|
|
|
labelInfos.append(
|
|
|
|
SessionLabelCarouselView.LabelInfo(
|
|
|
|
SessionLabelCarouselView.LabelInfo(
|
|
|
|
attributedText: notificationSettingsLabelString,
|
|
|
|
attributedText: notificationSettingsLabelString,
|
|
|
|
accessibilityIdentifier: nil,
|
|
|
|
accessibility: nil, // TODO: Add accessibility
|
|
|
|
type: .notificationSettings
|
|
|
|
type: .notificationSettings
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -183,7 +184,7 @@ final class ConversationTitleView: UIView {
|
|
|
|
labelInfos.append(
|
|
|
|
labelInfos.append(
|
|
|
|
SessionLabelCarouselView.LabelInfo(
|
|
|
|
SessionLabelCarouselView.LabelInfo(
|
|
|
|
attributedText: notificationSettingsLabelString,
|
|
|
|
attributedText: notificationSettingsLabelString,
|
|
|
|
accessibilityIdentifier: nil,
|
|
|
|
accessibility: nil, // TODO: Add accessibility
|
|
|
|
type: .notificationSettings
|
|
|
|
type: .notificationSettings
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -199,7 +200,7 @@ final class ConversationTitleView: UIView {
|
|
|
|
attributedText: NSAttributedString(
|
|
|
|
attributedText: NSAttributedString(
|
|
|
|
string: "\(userCount) member\(userCount == 1 ? "" : "s")"
|
|
|
|
string: "\(userCount) member\(userCount == 1 ? "" : "s")"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
accessibilityIdentifier: nil,
|
|
|
|
accessibility: nil, // TODO: Add accessibility
|
|
|
|
type: .userCount
|
|
|
|
type: .userCount
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -210,7 +211,7 @@ final class ConversationTitleView: UIView {
|
|
|
|
attributedText: NSAttributedString(
|
|
|
|
attributedText: NSAttributedString(
|
|
|
|
string: "\(userCount) active member\(userCount == 1 ? "" : "s")"
|
|
|
|
string: "\(userCount) active member\(userCount == 1 ? "" : "s")"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
accessibilityIdentifier: nil,
|
|
|
|
accessibility: nil, // TODO: Add accessibility
|
|
|
|
type: .userCount
|
|
|
|
type: .userCount
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -247,7 +248,10 @@ final class ConversationTitleView: UIView {
|
|
|
|
labelInfos.append(
|
|
|
|
labelInfos.append(
|
|
|
|
SessionLabelCarouselView.LabelInfo(
|
|
|
|
SessionLabelCarouselView.LabelInfo(
|
|
|
|
attributedText: disappearingMessageSettingLabelString,
|
|
|
|
attributedText: disappearingMessageSettingLabelString,
|
|
|
|
accessibilityIdentifier: "Disappearing messages type and time",
|
|
|
|
accessibility: Accessibility(
|
|
|
|
|
|
|
|
identifier: "Disappearing messages type and time",
|
|
|
|
|
|
|
|
label: "Disappearing messages type and time"
|
|
|
|
|
|
|
|
),
|
|
|
|
type: .disappearingMessageSetting
|
|
|
|
type: .disappearingMessageSetting
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|