Fix outbound labels based to avoid creating delays

This commit is contained in:
Jason P 2025-10-05 22:38:31 -05:00
parent b8d33a3280
commit 0b96486e7e

View File

@ -466,16 +466,7 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
// Final header line
char headerStr[96];
if (mine) {
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);
}
snprintf(headerStr, sizeof(headerStr), "%s %s", timeBuf, chanType);
} else {
snprintf(headerStr, sizeof(headerStr), "%s @%s %s", timeBuf, sender, chanType);
}