fix: do not consider the call stale if it is not sent out yet

This commit is contained in:
link2xt
2025-09-25 23:14:25 +00:00
committed by l
parent 1bd31f6b8e
commit a5c82425f4

View File

@@ -69,7 +69,7 @@ impl CallInfo {
/// Returns true if the call should not ring anymore.
pub fn is_stale(&self) -> bool {
self.remaining_ring_seconds() <= 0
(self.is_incoming() || self.msg.timestamp_sent != 0) && self.remaining_ring_seconds() <= 0
}
fn remaining_ring_seconds(&self) -> i64 {