This commit is contained in:
Woit 2024-12-06 22:40:10 +01:00
parent e6b3d856a7
commit 8515b79b57

View file

@ -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: