mod_cloud_notify/mod_cloud_notify.lua
changeset 5057 00e8cc6860cb
parent 5056 d7ece68de066
child 5061 c728e82265a7
equal deleted inserted replaced
5056:d7ece68de066 5057: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 = {};