mod_mam_mnesia: Fix Axolotl message detection
The <axolotl_message/> element usually doesn't have CDATA content.
This commit is contained in:
parent
638019ec58
commit
1c79c86168
|
@ -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().
|
||||
|
||||
|
|
Loading…
Reference in New Issue