From f0ef46bef58b998fcaec082fd35de685698f6b36 Mon Sep 17 00:00:00 2001 From: "Rich O." Date: Mon, 2 Nov 2026 11:20:56 -0500 Subject: [PATCH] palm-client: failed marker on Home follows the newest outgoing message --- palm-client/src/convos.c | 7 +++++-- palm-client/src/convos.h | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/palm-client/src/convos.c b/palm-client/src/convos.c index 8854a55..cf504a3 100644 --- a/palm-client/src/convos.c +++ b/palm-client/src/convos.c @@ -186,8 +186,11 @@ UInt16 ConvosBuild(VmConvRow *rows, UInt16 max) } if (h->unread) r->unread++; - if (h->dir == VM_DIR_OUT && h->status == VM_ST_FAILED) - r->failed = true; + /* only the newest outgoing message counts: a later send that worked clears it */ + if (h->dir == VM_DIR_OUT && h->received >= r->lastOut) { + r->lastOut = h->received; + r->failed = h->status == VM_ST_FAILED; + } if (r->conv.type == VM_CONV_DIRECT) r->marker = GLYPH_COMPANION; /* has history */ } diff --git a/palm-client/src/convos.h b/palm-client/src/convos.h index c54ca31..e43a1c1 100644 --- a/palm-client/src/convos.h +++ b/palm-client/src/convos.h @@ -21,7 +21,8 @@ typedef struct { Char name[VM_NAME_SIZE]; UInt16 unread; UInt32 last; /* Unix seconds of the newest message, 0 = none */ - Boolean failed; /* an outgoing message here wasn't delivered */ + Boolean failed; /* the newest outgoing message here wasn't delivered */ + UInt32 lastOut; /* when that message was stored (Unix seconds) */ Boolean muted; /* a muted channel (mutes.h) */ Char preview[VM_PREVIEW_LEN]; } VmConvRow;