mod_mam_mnesia: Fix Axolotl message detection

The <axolotl_message/> element usually doesn't have CDATA content.
This commit is contained in:
Holger Weiss 2015-07-20 21:39:44 +02:00
parent 638019ec58
commit 1c79c86168
1 changed files with 1 additions and 1 deletions

View File

@ -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().