diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-08-12 20:38:17 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-08-12 20:38:17 +0200 |
commit | 28dde294e50ab99c8a0350bbf1073fb7bb96d4d1 (patch) | |
tree | e75f330217f392fee73545cdb5f956fa1fa7e375 /src/mod_mam.erl | |
parent | Add a requirement for full JID in subscribe_room command (diff) |
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 <body> element."
Diffstat (limited to '')
-rw-r--r-- | src/mod_mam.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl index f9a77eff..4ee99879 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 -> |