|
@@ -30,8 +30,9 @@ exports._defaults = {
|
|
|
sound: 'res://platform_default',
|
|
sound: 'res://platform_default',
|
|
|
badge: undefined,
|
|
badge: undefined,
|
|
|
data: undefined,
|
|
data: undefined,
|
|
|
- trigger: { type: 'calendar' },
|
|
|
|
|
|
|
+ silent: false,
|
|
|
actions: [],
|
|
actions: [],
|
|
|
|
|
+ trigger: { type: 'calendar' },
|
|
|
actionGroupId: undefined,
|
|
actionGroupId: undefined,
|
|
|
attachments: []
|
|
attachments: []
|
|
|
};
|
|
};
|
|
@@ -201,7 +202,8 @@ exports.convertTrigger = function (options) {
|
|
|
var isCal = trigger.type == 'calendar';
|
|
var isCal = trigger.type == 'calendar';
|
|
|
|
|
|
|
|
if (isCal && !date) {
|
|
if (isCal && !date) {
|
|
|
- date = this.getValueFor(options, 'trigger', 'at', 'firstAt', 'date');
|
|
|
|
|
|
|
+ date = this.getValueFor(options, 'at', 'firstAt', 'date');
|
|
|
|
|
+ date = date || isObject && !cfg.getTime ? new Date() : options.trigger;
|
|
|
date = date || new Date();
|
|
date = date || new Date();
|
|
|
}
|
|
}
|
|
|
|
|
|