From 416ebc9ab88e9059eec2474d858302f2d50ff8ec Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Sun, 7 Sep 2014 22:05:17 -0400 Subject: [PATCH] another fix --- src/message_queue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/message_queue.c b/src/message_queue.c index b890e84..3b34bed 100644 --- a/src/message_queue.c +++ b/src/message_queue.c @@ -69,7 +69,10 @@ static void cqueue_mark_read(ToxWindow *self, uint32_t id, uint8_t type) while (line) { if (line->id == id) { line->type = type == OUT_ACTION ? OUT_ACTION_READ : OUT_MSG_READ; - line->len -= 2; /* removes " x" */ + + if (timed_out(line->timestamp, get_unix_time(), CQUEUE_TRY_SEND_INTERVAL)) + line->len -= 2; /* removes " x" */ + return; }