25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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} ->
true;
#xevent{id = undefined, offline = true} ->
NewMsg = Msg#message{from = To, to = From,
sub_els = [#xevent{id = ID, offline = true}]},
NewMsg = #message{from = To, to = From,
sub_els = [#xevent{id = ID, offline = true}]},
ejabberd_router:route(NewMsg),
true;
_ ->