special contacts and unset last_seen are never stale

This commit is contained in:
B. Petersen
2026-09-18 18:58:03 +02:00
parent 714b9a21f1
commit 7b094995e5

View File

@@ -737,6 +737,9 @@ impl Contact {
/// Returns `true` if this contact was not seen for a long time.
#[expect(clippy::arithmetic_side_effects)]
pub fn is_stale(&self) -> bool {
if self.last_seen == 0 || self.id <= ContactId::LAST_SPECIAL {
return false;
}
time() - self.last_seen > CONTACT_STALE_SECONDS
}