mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
fix mod_offline to store only chat messages with body xml element
This commit is contained in:
parent
92f89e3d45
commit
436f0832c1
@ -296,8 +296,9 @@ 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 (Type /= <<"headline">>) and (<<>> /= BodyElem) ->
|
||||
case has_no_storage_hint(Packet) of
|
||||
false ->
|
||||
case check_event(From, To, Packet) of
|
||||
|
Loading…
Reference in New Issue
Block a user