From: Paweł Chmielowski Date: Mon, 8 Oct 2018 13:56:44 +0000 (+0200) Subject: Archive messages with type=normal and pubsub payload (like mucsub messages) X-Git-Tag: 18.12~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a16acd77ed483fa54ccb26f20859cd542decc897;p=ejabberd Archive messages with type=normal and pubsub payload (like mucsub messages) --- diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 2a43322c8..4581a6daa 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -649,7 +649,8 @@ should_archive(#message{body = Body, subject = Subject, false; none -> xmpp:get_text(Body) /= <<>> orelse - xmpp:get_text(Subject) /= <<>> + xmpp:get_text(Subject) /= <<>> orelse + xmpp:has_subtag(Pkt, #ps_event{}) end end; should_archive(_, _LServer) ->