Mercurial > prosody-modules
comparison mod_mam/mod_mam.lua @ 1773:fb2b9a2e2316
mod_mam: Support both spellings of XEP-0334 processing hints until XEP is clarified
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 18 Jul 2015 23:11:59 +0200 |
| parents | 398a007da84e |
| children | d2b82b90c413 |
comparison
equal
deleted
inserted
replaced
| 1772:45f7e3c2557f | 1773:fb2b9a2e2316 |
|---|---|
| 228 or orig_type == "headline" | 228 or orig_type == "headline" |
| 229 or orig_type == "groupchat" | 229 or orig_type == "groupchat" |
| 230 -- or that don't have a <body/> | 230 -- or that don't have a <body/> |
| 231 or not stanza:get_child("body") | 231 or not stanza:get_child("body") |
| 232 -- or if hints suggest we shouldn't | 232 -- or if hints suggest we shouldn't |
| 233 or stanza:get_child("no-permanent-storage", "urn:xmpp:hints") | 233 or stanza:get_child("no-permanent-storage", "urn:xmpp:hints") -- The XEP needs to decide on "store" or "storage" |
| 234 or stanza:get_child("no-storage", "urn:xmpp:hints") then | 234 or stanza:get_child("no-permanent-store", "urn:xmpp:hints") |
| 235 or stanza:get_child("no-storage", "urn:xmpp:hints") | |
| 236 or stanza:get_child("no-store", "urn:xmpp:hints") then | |
| 235 module:log("debug", "Not archiving stanza: %s (content)", stanza:top_tag()); | 237 module:log("debug", "Not archiving stanza: %s (content)", stanza:top_tag()); |
| 236 return; | 238 return; |
| 237 end | 239 end |
| 238 | 240 |
| 239 -- Whos storage do we put it in? | 241 -- Whos storage do we put it in? |
