wip
This commit is contained in:
parent
515ed2197e
commit
dce50cddca
|
@ -39,6 +39,11 @@ struct MessageAttr: View {
|
||||||
.font(.sub2)
|
.font(.sub2)
|
||||||
.foregroundColor(.Material.Shape.separator)
|
.foregroundColor(.Material.Shape.separator)
|
||||||
Spacer()
|
Spacer()
|
||||||
|
if message.encrypted {
|
||||||
|
Image(systemName: "lock")
|
||||||
|
.font(.body3)
|
||||||
|
.foregroundColor(.Material.Shape.separator)
|
||||||
|
}
|
||||||
|
|
||||||
// message state commented for now
|
// message state commented for now
|
||||||
// if message.status == .error {
|
// if message.status == .error {
|
||||||
|
@ -49,10 +54,6 @@ struct MessageAttr: View {
|
||||||
// Image(systemName: "clock")
|
// Image(systemName: "clock")
|
||||||
// .font(.body3)
|
// .font(.body3)
|
||||||
// .foregroundColor(.Material.Shape.separator)
|
// .foregroundColor(.Material.Shape.separator)
|
||||||
// } else if message.secure {
|
|
||||||
// Image(systemName: "lock")
|
|
||||||
// .font(.body3)
|
|
||||||
// .foregroundColor(.Material.Shape.separator)
|
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,6 +90,7 @@ struct Message: Identifiable {
|
||||||
let timestamp: Date
|
let timestamp: Date
|
||||||
let body: String
|
let body: String
|
||||||
let isInbound: Bool
|
let isInbound: Bool
|
||||||
|
let encrypted: Bool
|
||||||
|
|
||||||
var id: String {
|
var id: String {
|
||||||
"\(accountId)|\(dbId)"
|
"\(accountId)|\(dbId)"
|
||||||
|
@ -104,5 +105,6 @@ struct Message: Identifiable {
|
||||||
timestamp = obj.timestamp
|
timestamp = obj.timestamp
|
||||||
body = obj.messageText
|
body = obj.messageText
|
||||||
isInbound = obj.inbound
|
isInbound = obj.inbound
|
||||||
|
encrypted = obj.encrypted
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue