Continue unifying display, also show message status on the "isMine" lines

This commit is contained in:
Jason P
2025-10-05 15:01:22 -05:00
parent bebb1e9e8d
commit 8860f6195f
2 changed files with 13 additions and 4 deletions

View File

@@ -466,7 +466,16 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
// Final header line
char headerStr[96];
if (mine) {
snprintf(headerStr, sizeof(headerStr), "me %s %s", timeBuf, chanType);
if (m.ackStatus == AckStatus::ACKED) {
// Destination ACK
snprintf(headerStr, sizeof(headerStr), "Sent %s %s", timeBuf, chanType);
} else if (m.ackStatus == AckStatus::NACKED || m.ackStatus == AckStatus::TIMEOUT) {
// Failure or timeout
snprintf(headerStr, sizeof(headerStr), "Failed %s %s", timeBuf, chanType);
} else if (m.ackStatus == AckStatus::RELAYED) {
// Relay ACK
snprintf(headerStr, sizeof(headerStr), "Relayed %s %s", timeBuf, chanType);
}
} else {
snprintf(headerStr, sizeof(headerStr), "%s @%s %s", timeBuf, sender, chanType);
}