mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 06:26:30 +03:00
fix: do not consider the call stale if it is not sent out yet
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user