From: Evgeniy Khramtsov Date: Mon, 27 Oct 2014 10:44:46 +0000 (+0300) Subject: Revert "fix mod_offline to store only chat messages with body xml element" X-Git-Tag: 14.12~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dec1e1f67fafa23abceb295849cc8e0568508078;p=ejabberd Revert "fix mod_offline to store only chat messages with body xml element" This reverts commit 436f0832c1d7cdd98c6629977d41700e5aa7e589. --- diff --git a/src/mod_offline.erl b/src/mod_offline.erl index 95c5881df..bb488f8c5 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -296,9 +296,8 @@ get_sm_features(Acc, _From, _To, _Node, _Lang) -> store_packet(From, To, Packet) -> Type = xml:get_tag_attr_s(<<"type">>, Packet), - BodyElem = xml:get_path_s(Packet,[{elem, <<"body">>}]), if (Type /= <<"error">>) and (Type /= <<"groupchat">>) - and (Type /= <<"headline">>) and (<<>> /= BodyElem) -> + and (Type /= <<"headline">>) -> case has_no_storage_hint(Packet) of false -> case check_event(From, To, Packet) of