d
This commit is contained in:
@@ -11,14 +11,14 @@ public extension MicItem {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
static func shouldResetTimeout(_ c: MicItemContext) -> (delay: Int, value: Bool)? {
|
static func shouldResetTimeout(_ c: MicItemContext) -> TimeInterval? {
|
||||||
if
|
if
|
||||||
c.activityDate.isRecent,
|
c.activityDate.isRecent,
|
||||||
let end = c.activityDate.value
|
let end = c.activityDate.value
|
||||||
{
|
{
|
||||||
let now = Date()
|
let timeout = end.timerIntervalSinceNow()
|
||||||
let timeout = now < end
|
/**/print("ИГР MicIS.shouldRT timeout: '\(timeout)'")
|
||||||
return (timeout, true)
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user