25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Revert "fix mod_offline to store only chat messages with body xml element"

This reverts commit 436f0832c1.
This commit is contained in:
Evgeniy Khramtsov 2014-10-27 13:44:46 +03:00
parent bf33f74ef8
commit dec1e1f67f

View File

@ -296,9 +296,8 @@ get_sm_features(Acc, _From, _To, _Node, _Lang) ->
store_packet(From, To, Packet) -> store_packet(From, To, Packet) ->
Type = xml:get_tag_attr_s(<<"type">>, Packet), Type = xml:get_tag_attr_s(<<"type">>, Packet),
BodyElem = xml:get_path_s(Packet,[{elem, <<"body">>}]),
if (Type /= <<"error">>) and (Type /= <<"groupchat">>) if (Type /= <<"error">>) and (Type /= <<"groupchat">>)
and (Type /= <<"headline">>) and (<<>> /= BodyElem) -> and (Type /= <<"headline">>) ->
case has_no_storage_hint(Packet) of case has_no_storage_hint(Packet) of
false -> false ->
case check_event(From, To, Packet) of case check_event(From, To, Packet) of