This commit is contained in:
Ilya Laktyushin
2019-11-01 22:53:32 +04:00
parent cd64a206b6
commit 0505eb574e
6 changed files with 10 additions and 7 deletions

View File

@@ -195,7 +195,7 @@ public extension Message {
func effectivelyFailed(timestamp: Int32) -> Bool {
if self.flags.contains(.Failed) {
return true
} else if self.id.namespace == Namespaces.Message.ScheduledCloud && self.timestamp != 0x7FFFFFFE {
} else if self.id.namespace == Namespaces.Message.ScheduledCloud && self.timestamp != scheduleWhenOnlineTimestamp {
return timestamp > self.timestamp + 60
} else {
return false