comparison mod_cloud_notify/mod_cloud_notify.lua @ 2261:a276fdabf768

mod_cloud_notify: Store data for corret user (origin is not correct here)
author Kim Alvefur <zash@zash.se>
date Thu, 28 Jul 2016 13:13:08 +0200
parents 8cc8e964812b
children 19fbf190b5a7
comparison
equal deleted inserted replaced
2260:8cc8e964812b 2261:a276fdabf768
125 if push_info.options then 125 if push_info.options then
126 push_publish:tag("publish-options"):add_child(st.deserialize(push_info.options)); 126 push_publish:tag("publish-options"):add_child(st.deserialize(push_info.options));
127 end 127 end
128 module:send(push_publish); 128 module:send(push_publish);
129 end 129 end
130 push_enabled:set(origin.username, user_push_services); 130 push_enabled:set(node, user_push_services);
131 end 131 end
132 132
133 -- publish on offline message 133 -- publish on offline message
134 module:hook("message/offline/handle", function(event) 134 module:hook("message/offline/handle", function(event)
135 if event.stanza._notify then 135 if event.stanza._notify then