Software /
code /
prosody
Diff
plugins/mod_muc_mam.lua @ 8724:cfcc78c50905
mod_muc_mam: Let muc/history.lib decide which messages to store
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 24 Mar 2018 18:16:08 +0100 |
parent | 8723:f3bdb20214ab |
child | 8725:ced09d7d7c96 |
line wrap: on
line diff
--- a/plugins/mod_muc_mam.lua Tue Dec 12 20:25:56 2017 +0100 +++ b/plugins/mod_muc_mam.lua Sat Mar 24 18:16:08 2018 +0100 @@ -334,11 +334,9 @@ end end -module:hook("muc-broadcast-message", function (event) +module:hook("muc-add-history", function (event) local room, stanza = event.room, event.stanza; - if stanza:get_child("body") then - save_to_history(room, stanza); - end + save_to_history(room, stanza); end); if module:get_option_boolean("muc_log_presences", true) then