Commit 2e0bcaf0 by Sebastián Katzer

Support for new trigger option in: (iOS)

parent d849245c
...@@ -464,7 +464,14 @@ ...@@ -464,7 +464,14 @@
*/ */
- (double) timeInterval - (double) timeInterval
{ {
return MAX(0.01f, [self.triggerDate timeIntervalSinceDate:[NSDate date]]); double interval = [[self valueForTriggerOption:@"in"]
doubleValue];
if (interval == 0) {
interval = [self.triggerDate timeIntervalSinceDate:NSDate.date];
}
return MAX(0.01f, interval);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment