1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 06:56:44 +02:00

properly flag lines with unread mark

This commit is contained in:
Jfreegman
2014-09-07 22:26:07 -04:00
parent 416ebc9ab8
commit 09f90d095b
3 changed files with 19 additions and 7 deletions

View File

@ -70,8 +70,10 @@ static void cqueue_mark_read(ToxWindow *self, uint32_t id, uint8_t type)
if (line->id == id) {
line->type = type == OUT_ACTION ? OUT_ACTION_READ : OUT_MSG_READ;
if (timed_out(line->timestamp, get_unix_time(), CQUEUE_TRY_SEND_INTERVAL))
line->len -= 2; /* removes " x" */
if (line->noread_flag == true) {
line->len -= 2;
line->noread_flag = false;
}
return;
}