palm-client: failed marker on Home follows the newest outgoing message
This commit is contained in:
1 parent
7c4473bcb5
commit
f0ef46bef5
2 files changed
+7
-3
No files matched your search
@@ -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 */
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user