Mercurial > prosody-modules
comparison mod_mam/mod_mam.lua @ 2762:f2096c03428b
mod_mam: Fix traceback due to borked transplant from 0.10
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 03 Sep 2017 13:28:28 +0200 |
| parents | b13d07613b80 |
| children | 1872a9129c2f |
comparison
equal
deleted
inserted
replaced
| 2761:b13d07613b80 | 2762:f2096c03428b |
|---|---|
| 315 local clone_for_other_handlers = st.clone(stanza); | 315 local clone_for_other_handlers = st.clone(stanza); |
| 316 local id = ok; | 316 local id = ok; |
| 317 clone_for_other_handlers:tag("stanza-id", { xmlns = xmlns_st_id, by = store_user.."@"..host, id = id }):up(); | 317 clone_for_other_handlers:tag("stanza-id", { xmlns = xmlns_st_id, by = store_user.."@"..host, id = id }):up(); |
| 318 event.stanza = clone_for_other_handlers; | 318 event.stanza = clone_for_other_handlers; |
| 319 if cleanup then cleanup[store_user] = true; end | 319 if cleanup then cleanup[store_user] = true; end |
| 320 module:fire_event("archive-message-added", { origin = origin, stanza = clone_for_storage, for_user = store_user, id = id }); | 320 module:fire_event("archive-message-added", { origin = origin, stanza = stanza, for_user = store_user, id = id }); |
| 321 end | 321 end |
| 322 else | 322 else |
| 323 log("debug", "Not archiving stanza: %s (prefs)", stanza:top_tag()); | 323 log("debug", "Not archiving stanza: %s (prefs)", stanza:top_tag()); |
| 324 end | 324 end |
| 325 end | 325 end |
