From 28cfb73f59af94f63198065f3a2802a0cb803975 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 24 Mar 2018 18:16:08 +0100 Subject: mod_muc_mam: Let muc/history.lib decide which messages to store --- plugins/mod_muc_mam.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua index dfef91c9..8d69e83d 100644 --- a/plugins/mod_muc_mam.lua +++ b/plugins/mod_muc_mam.lua @@ -334,11 +334,9 @@ local function save_to_history(self, stanza) 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 -- cgit v1.2.3