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

Make sure only jabberevent tag is present in offline event

This commit is contained in:
Evgeniy Khramtsov 2017-04-25 17:21:24 +03:00
parent d0f3696596
commit 069bf6dec6

View File

@ -539,8 +539,8 @@ check_event(#message{from = From, to = To, id = ID} = Msg) ->
#xevent{id = undefined, offline = false} -> #xevent{id = undefined, offline = false} ->
true; true;
#xevent{id = undefined, offline = true} -> #xevent{id = undefined, offline = true} ->
NewMsg = Msg#message{from = To, to = From, NewMsg = #message{from = To, to = From,
sub_els = [#xevent{id = ID, offline = true}]}, sub_els = [#xevent{id = ID, offline = true}]},
ejabberd_router:route(NewMsg), ejabberd_router:route(NewMsg),
true; true;
_ -> _ ->