From a913bed3354820dfb503a0ab30c37096e5a2199e Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Wed, 28 Feb 2024 16:45:11 +1100 Subject: [PATCH] fix a little issue on the text style of the expiration update control message --- Session/Conversations/Message Cells/InfoMessageCell.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Session/Conversations/Message Cells/InfoMessageCell.swift b/Session/Conversations/Message Cells/InfoMessageCell.swift index 016a806c6..c68bda5d5 100644 --- a/Session/Conversations/Message Cells/InfoMessageCell.swift +++ b/Session/Conversations/Message Cells/InfoMessageCell.swift @@ -132,11 +132,15 @@ final class InfoMessageCell: MessageCell { ) .adding( attributes: [ .font: UIFont.boldSystemFont(ofSize: Values.verySmallFontSize) ], - range: (body as NSString).range(of: floor(cellViewModel.threadExpirationTimer ?? 0).formatted(format: .long)) + range: (body as NSString).range(of: floor(cellViewModel.expiresInSeconds ?? 0).formatted(format: .long)) ) .adding( attributes: [ .font: UIFont.boldSystemFont(ofSize: Values.verySmallFontSize) ], - range: (body as NSString).range(of: (cellViewModel.threadExpirationType == .disappearAfterRead ? "DISAPPEARING_MESSAGE_STATE_READ".localized() : "DISAPPEARING_MESSAGE_STATE_SENT".localized())) + range: (body as NSString).range(of: "DISAPPEARING_MESSAGE_STATE_READ".localized()) + ) + .adding( + attributes: [ .font: UIFont.boldSystemFont(ofSize: Values.verySmallFontSize) ], + range: (body as NSString).range(of: "DISAPPEARING_MESSAGE_STATE_SENT".localized()) ) .adding( attributes: [ .font: UIFont.boldSystemFont(ofSize: Values.verySmallFontSize) ],