Merge pull request #153 from meshtastic/ack_status

Update ack status
This commit is contained in:
Garth Vander Houwen 2022-08-24 20:21:57 -07:00 committed by GitHub
commit 33814cf2fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,12 +296,17 @@ struct UserMessageList: View {
HStack {
if message.receivedACK {
if currentUser && message.receivedACK {
// Ack Received
Text("Acknowledged").font(.caption2).foregroundColor(.gray)
}
if message.ackError > 0 {
} else if currentUser && message.ackError == 0 {
// Empty Error
Text("Waiting to be acknowledged. . .").font(.caption2).foregroundColor(.yellow)
} else if currentUser && message.ackError > 0 {
let ackErrorVal = RoutingError(rawValue: Int(message.ackError))
Text("\(ackErrorVal?.display ?? "No Error" )").fixedSize(horizontal: false, vertical: true)