From cae4fbb40ba9f61690224ba8a55de7dbae8e7f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Tue, 1 Feb 2022 15:18:50 +0100 Subject: [PATCH] Store all mucsub notifications not only message notifications Previously we stored only message/subject change notifications, but if user request also change notificaitons for affiliation/config/subscribers then i don't see reason why we shouldn't store it as well. --- src/mod_mam.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 9bf154f58..5bf42a759 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -740,7 +740,7 @@ should_archive(#message{body = Body, subject = Subject, #message{} = Msg -> should_archive(Msg, LServer); _ -> - false + misc:is_mucsub_message(Pkt) end end end