From 7697756fb436afdb673ce54af64f4efcfb99fbd6 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 20 Jul 2015 21:39:44 +0200 Subject: [PATCH] mod_mam_mnesia: Fix Axolotl message detection The element usually doesn't have CDATA content. --- mod_mam_mnesia/src/mod_mam_mnesia.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_mam_mnesia/src/mod_mam_mnesia.erl b/mod_mam_mnesia/src/mod_mam_mnesia.erl index 698323a..299c345 100644 --- a/mod_mam_mnesia/src/mod_mam_mnesia.erl +++ b/mod_mam_mnesia/src/mod_mam_mnesia.erl @@ -352,7 +352,7 @@ message_type(#xmlel{attrs = Attrs}) -> has_non_empty_body(Message) -> xml:get_subtag_cdata(Message, <<"body">>) =/= <<"">> orelse - xml:get_subtag_cdata(Message, <<"axolotl_message">>) =/= <<"">>. + xml:get_subtag(Message, <<"axolotl_message">>) =/= false. -spec has_no_storage_hint(xmlel()) -> boolean().