Changeset

2792:7622ec165cdd

mod_cloud_notify: Remove some leftover code
author tmolitor <thilo@eightysoft.de>
date Wed, 11 Oct 2017 03:55:00 +0200
parents 2791:008cf272b7ea
children 2793:4b7e6c01aa1c
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Wed Oct 11 03:10:40 2017 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Wed Oct 11 03:55:00 2017 +0200
@@ -270,13 +270,6 @@
 			if stanza and include_body then
 				form_data["last-message-body"] = stanza:get_child_text("body");
 			end
-			if stanza then
-				if stanza:get_child("body") or stanza:get_child("encrypted", "eu.siacs.conversations.axolotl") then
-					form_data["last-message-priority"] = "high";
-				else
-					form_data["last-message-priority"] = "low";
-				end
-			end
 			push_publish:add_child(push_form:form(form_data));
 			if stanza and push_info.include_payload == "stripped" then
 				push_publish:tag("payload", { type = "stripped" })