Software / code / prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 10746:2e31d67b9a29
mod_mam: Make note of Experimental (or Deferred) XEPs
Since these XEPs are subject to change we may need come back and double
check these in the future.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 22 Apr 2020 18:53:50 +0200 |
| parent | 10745:79b29f35fac1 |
| child | 10751:4db4bd8a7822 |
comparison
equal
deleted
inserted
replaced
| 10745:79b29f35fac1 | 10746:2e31d67b9a29 |
|---|---|
| 281 -- MUC messages always go to the full JID, usually archived by the MUC | 281 -- MUC messages always go to the full JID, usually archived by the MUC |
| 282 return false, "groupchat"; | 282 return false, "groupchat"; |
| 283 end | 283 end |
| 284 if stanza:get_child("no-store", "urn:xmpp:hints") | 284 if stanza:get_child("no-store", "urn:xmpp:hints") |
| 285 or stanza:get_child("no-permanent-store", "urn:xmpp:hints") then | 285 or stanza:get_child("no-permanent-store", "urn:xmpp:hints") then |
| 286 -- XXX Experimental XEP | |
| 286 return false, "hint"; | 287 return false, "hint"; |
| 287 end | 288 end |
| 288 if stanza:get_child("store", "urn:xmpp:hints") then | 289 if stanza:get_child("store", "urn:xmpp:hints") then |
| 289 return true, "hint"; | 290 return true, "hint"; |
| 290 end | 291 end |
| 295 -- XXX Who would send a message with a subject but without a body? | 296 -- XXX Who would send a message with a subject but without a body? |
| 296 return true, "subject"; | 297 return true, "subject"; |
| 297 end | 298 end |
| 298 if stanza:get_child("encryption", "urn:xmpp:eme:0") then | 299 if stanza:get_child("encryption", "urn:xmpp:eme:0") then |
| 299 -- Since we can't know what an encrypted message contains, we assume it's important | 300 -- Since we can't know what an encrypted message contains, we assume it's important |
| 301 -- XXX Experimental XEP | |
| 300 return true, "encrypted"; | 302 return true, "encrypted"; |
| 301 end | 303 end |
| 302 if stanza:get_child(nil, "urn:xmpp:receipts") then | 304 if stanza:get_child(nil, "urn:xmpp:receipts") then |
| 303 -- If it's important enough to ask for a receipt then it's important enough to archive | 305 -- If it's important enough to ask for a receipt then it's important enough to archive |
| 304 -- and the same applies to the receipt | 306 -- and the same applies to the receipt |
| 305 return true, "receipt"; | 307 return true, "receipt"; |
| 306 end | 308 end |
| 307 if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then | 309 if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then |
| 310 -- XXX Experimental XEP | |
| 308 return true, "marker"; | 311 return true, "marker"; |
| 309 end | 312 end |
| 310 if stanza:get_child("x", "jabber:x:conference") | 313 if stanza:get_child("x", "jabber:x:conference") |
| 311 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then | 314 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then |
| 312 return true, "invite"; | 315 return true, "invite"; |