mod_csi_battery_saver/mod_csi_battery_saver.lua
changeset 5897 5db53d619e66
parent 5896 433a4dd1dc2a
child 5898 423163b65bb1
equal deleted inserted replaced
5896:433a4dd1dc2a 5897:5db53d619e66
   104 
   104 
   105 		local st_type = stanza.attr.type;
   105 		local st_type = stanza.attr.type;
   106 
   106 
   107 		-- headline message are always not important, with some exceptions
   107 		-- headline message are always not important, with some exceptions
   108 		if st_type == "headline" then
   108 		if st_type == "headline" then
   109 			-- allow headline pushes of mds updates
   109 			-- allow headline pushes of mds updates (XEP-0490)
   110 			if stanza:find("{http://jabber.org/protocol/pubsub#event}event/items@node") == "urn:xmpp:mds:displayed:0" then return true; end;
   110 			if stanza:find("{http://jabber.org/protocol/pubsub#event}event/items@node") == "urn:xmpp:mds:displayed:0" then return true; end;
   111 			return false
   111 			return false
   112 		end
   112 		end
   113 
   113 
   114 		-- chat markers (XEP-0333) are important, too, because some clients use them to update their notifications
   114 		-- chat markers (XEP-0333) are important, too, because some clients use them to update their notifications