From 1b9b25cfa6f2270915b066d37a438b5110516361 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Fri, 30 Jun 2017 23:11:40 +0200 Subject: [PATCH] Drop old history correctly --- tgp-msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgp-msg.c b/tgp-msg.c index 64c5c29..68b8aec 100644 --- a/tgp-msg.c +++ b/tgp-msg.c @@ -828,7 +828,7 @@ void tgp_msg_recv (struct tgl_state *TLS, struct tgl_message *M, GList *before) return; } - if (!(M->flags | TGLMF_UNREAD) && M->date != 0 && M->date < tgp_msg_oldest_relevant_ts (TLS)) { + if (!(M->flags & TGLMF_UNREAD) && M->date != 0 && M->date < tgp_msg_oldest_relevant_ts (TLS)) { debug ("Message from %d on %d too old, ignored.", tgl_get_peer_id (M->from_id), M->date); return; }