mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Revert "fix mod_offline to store only chat messages with body xml element"
This reverts commit 436f0832c1
.
This commit is contained in:
parent
bf33f74ef8
commit
dec1e1f67f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user