changeset 8727 | cfcc78c50905 |
parent 8726 | f3bdb20214ab |
child 8728 | ced09d7d7c96 |
--- 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