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 { var body: some View {
VStack(alignment: .leading, spacing: 0) { VStack(alignment: .leading, spacing: 0) {
Text(message.timestamp, style: .time) HStack(spacing: 2) {
.font(.sub2) if !message.isInbound && message.encrypted {
.foregroundColor(.Material.Shape.separator) Image(systemName: "lock")
Spacer() .font(.sub1)
if message.encrypted { .foregroundColor(.Material.Shape.separator)
Image(systemName: "lock") }
.font(.body3) Text(message.timestamp, style: .time)
.font(.sub1)
.foregroundColor(.Material.Shape.separator) .foregroundColor(.Material.Shape.separator)
if message.isInbound && message.encrypted {
Image(systemName: "lock")
.font(.sub1)
.foregroundColor(.Material.Shape.separator)
}
} }
Spacer()
switch message.status { switch message.status {
case .sent: case .sent: