Comparison

mod_csi_battery_saver/mod_csi_battery_saver.lua @ 5917:5db53d619e66

mod_csi_battery_saver: add xep number to mds comment
author tmolitor <thilo@eightysoft.de>
date Mon, 29 Apr 2024 01:31:40 +0200
parent 5916:433a4dd1dc2a
child 5918:423163b65bb1
comparison
equal deleted inserted replaced
5916:433a4dd1dc2a 5917: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