From: Holger Weiss Date: Fri, 12 Aug 2016 18:38:17 +0000 (+0200) Subject: mod_mam: Don't store messages of type "headline" X-Git-Tag: 16.09~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28dde294e50ab99c8a0350bbf1073fb7bb96d4d1;p=ejabberd mod_mam: Don't store messages of type "headline" XEP-0313 says: "a server SHOULD include in a user archive all of the messages a user sends or receives of type 'normal' or 'chat' that contain a element." --- diff --git a/src/mod_mam.erl b/src/mod_mam.erl index f9a77eff2..4ee998793 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -560,6 +560,8 @@ should_archive(#xmlel{name = <<"message">>} = Pkt, LServer) -> false; <<"groupchat">> -> false; + <<"headline">> -> + false; _ -> case is_resent(Pkt, LServer) of true ->