comparison mod_cloud_notify/mod_cloud_notify.lua @ 5053:00e8cc6860cb

mod_cloud_notify: Fix default extended timeout from 72 days -> 72 hours
author Matthew Wild <mwild1@gmail.com>
date Fri, 23 Sep 2022 22:40:54 +0100
parents d7ece68de066
children c728e82265a7
comparison
equal deleted inserted replaced
5052:d7ece68de066 5053:00e8cc6860cb
19 local include_body = module:get_option_boolean("push_notification_with_body", false); 19 local include_body = module:get_option_boolean("push_notification_with_body", false);
20 local include_sender = module:get_option_boolean("push_notification_with_sender", false); 20 local include_sender = module:get_option_boolean("push_notification_with_sender", false);
21 local max_push_errors = module:get_option_number("push_max_errors", 16); 21 local max_push_errors = module:get_option_number("push_max_errors", 16);
22 local max_push_devices = module:get_option_number("push_max_devices", 5); 22 local max_push_devices = module:get_option_number("push_max_devices", 5);
23 local dummy_body = module:get_option_string("push_notification_important_body", "New Message!"); 23 local dummy_body = module:get_option_string("push_notification_important_body", "New Message!");
24 local extended_hibernation_timeout = module:get_option_number("push_max_hibernation_timeout", 72*24*3600); -- use same timeout like ejabberd 24 local extended_hibernation_timeout = module:get_option_number("push_max_hibernation_timeout", 72*3600); -- use same timeout like ejabberd
25 25
26 local host_sessions = prosody.hosts[module.host].sessions; 26 local host_sessions = prosody.hosts[module.host].sessions;
27 local push_errors = module:shared("push_errors"); 27 local push_errors = module:shared("push_errors");
28 local id2node = {}; 28 local id2node = {};
29 local id2identifier = {}; 29 local id2identifier = {};