Software /
code /
prosody-modules
Comparison
mod_cloud_notify/mod_cloud_notify.lua @ 2792:7622ec165cdd
mod_cloud_notify: Remove some leftover code
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Wed, 11 Oct 2017 03:55:00 +0200 |
parent | 2791:008cf272b7ea |
child | 2976:df86ce6bb0b4 |
comparison
equal
deleted
inserted
replaced
2791:008cf272b7ea | 2792:7622ec165cdd |
---|---|
268 form_data["last-message-sender"] = stanza.attr.from; | 268 form_data["last-message-sender"] = stanza.attr.from; |
269 end | 269 end |
270 if stanza and include_body then | 270 if stanza and include_body then |
271 form_data["last-message-body"] = stanza:get_child_text("body"); | 271 form_data["last-message-body"] = stanza:get_child_text("body"); |
272 end | 272 end |
273 if stanza then | |
274 if stanza:get_child("body") or stanza:get_child("encrypted", "eu.siacs.conversations.axolotl") then | |
275 form_data["last-message-priority"] = "high"; | |
276 else | |
277 form_data["last-message-priority"] = "low"; | |
278 end | |
279 end | |
280 push_publish:add_child(push_form:form(form_data)); | 273 push_publish:add_child(push_form:form(form_data)); |
281 if stanza and push_info.include_payload == "stripped" then | 274 if stanza and push_info.include_payload == "stripped" then |
282 push_publish:tag("payload", { type = "stripped" }) | 275 push_publish:tag("payload", { type = "stripped" }) |
283 :add_child(strip_stanza(stanza)); | 276 :add_child(strip_stanza(stanza)); |
284 push_publish:up(); -- / payload | 277 push_publish:up(); -- / payload |