diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2018-10-08 16:56:44 +0300 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2018-10-08 16:56:44 +0300 |
commit | a16acd77ed483fa54ccb26f20859cd542decc897 (patch) | |
tree | 5d305021004122c5217e4e4aa64081a62c753e87 | |
parent | 510925c9a15f9fbdde332ef7fde36364cd4227db (diff) |
Archive messages with type=normal and pubsub payload (like mucsub messages)
-rw-r--r-- | src/mod_mam.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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) -> |