wip
This commit is contained in:
parent
e6b3d856a7
commit
8515b79b57
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue