We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b0d2e8 commit 2ea8f5fCopy full SHA for 2ea8f5f
Leanplum-SDK/Classes/LPActionManager.m
@@ -1094,7 +1094,11 @@ - (LeanplumMessageMatchResult)shouldShowMessage:(NSString *)messageId
1094
NSTimeInterval now = [[NSDate date] timeIntervalSince1970];
1095
NSTimeInterval startTime = [messageConfig[@"startTime"] doubleValue] / 1000.0;
1096
NSTimeInterval endTime = [messageConfig[@"endTime"] doubleValue] / 1000.0;
1097
- result.matchedActivePeriod = now > startTime && now < endTime;
+ if (startTime && endTime) {
1098
+ result.matchedActivePeriod = now > startTime && now < endTime;
1099
+ } else {
1100
+ result.matchedActivePeriod = YES;
1101
+ }
1102
1103
return result;
1104
}
0 commit comments