From 8515b79b578d1013138652d77fced6a5299f13c0 Mon Sep 17 00:00:00 2001 From: Woit Date: Fri, 6 Dec 2024 22:40:10 +0100 Subject: [PATCH] wip --- .../ConversationMessageContainer.swift | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Monal/another.im/Views/Conversation/ConversationMessageContainer.swift b/Monal/another.im/Views/Conversation/ConversationMessageContainer.swift index 33b646d..ada6580 100644 --- a/Monal/another.im/Views/Conversation/ConversationMessageContainer.swift +++ b/Monal/another.im/Views/Conversation/ConversationMessageContainer.swift @@ -35,15 +35,22 @@ struct MessageAttr: View { var body: some View { VStack(alignment: .leading, spacing: 0) { - Text(message.timestamp, style: .time) - .font(.sub2) - .foregroundColor(.Material.Shape.separator) - Spacer() - if message.encrypted { - Image(systemName: "lock") - .font(.body3) + HStack(spacing: 2) { + if !message.isInbound && message.encrypted { + Image(systemName: "lock") + .font(.sub1) + .foregroundColor(.Material.Shape.separator) + } + Text(message.timestamp, style: .time) + .font(.sub1) .foregroundColor(.Material.Shape.separator) + if message.isInbound && message.encrypted { + Image(systemName: "lock") + .font(.sub1) + .foregroundColor(.Material.Shape.separator) + } } + Spacer() switch message.status { case .sent: