Drop old history correctly
This commit is contained in:
parent
2e303492b9
commit
1b9b25cfa6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue