equal
deleted
inserted
replaced
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 |