From 638019ec58af4fd9e5f5eeca5ae6ae2b21d2a1b9 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 20 Jul 2015 12:50:33 +0200 Subject: [PATCH] mod_mam_mnesia: Also store Axolotl messages --- mod_mam_mnesia/src/mod_mam_mnesia.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod_mam_mnesia/src/mod_mam_mnesia.erl b/mod_mam_mnesia/src/mod_mam_mnesia.erl index bccfdb8..698323a 100644 --- a/mod_mam_mnesia/src/mod_mam_mnesia.erl +++ b/mod_mam_mnesia/src/mod_mam_mnesia.erl @@ -351,7 +351,8 @@ message_type(#xmlel{attrs = Attrs}) -> -spec has_non_empty_body(xmlel()) -> boolean(). has_non_empty_body(Message) -> - xml:get_subtag_cdata(Message, <<"body">>) =/= <<"">>. + xml:get_subtag_cdata(Message, <<"body">>) =/= <<"">> orelse + xml:get_subtag_cdata(Message, <<"axolotl_message">>) =/= <<"">>. -spec has_no_storage_hint(xmlel()) -> boolean().