From 7b094995e51a7fde8b28446f6dda0c35ec82b929 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 18 Sep 2026 18:58:03 +0200 Subject: [PATCH] special contacts and unset last_seen are never stale --- src/contact.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/contact.rs b/src/contact.rs index 3e0b0a95a..dfb104bbb 100644 --- a/src/contact.rs +++ b/src/contact.rs @@ -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 }