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) ],