aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2014-10-27 13:44:46 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2014-10-27 13:44:46 +0300
commitdec1e1f67fafa23abceb295849cc8e0568508078 (patch)
treed10ff71c9bb05e31705e9d8c78cb110be67712fc /src
parentGet rid of a hyphen in VSN (diff)
Revert "fix mod_offline to store only chat messages with body xml element"
Diffstat (limited to 'src')
-rw-r--r--src/mod_offline.erl3
1 files changed, 1 insertions, 2 deletions
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