mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Make sure only jabber❌event tag is present in offline event
This commit is contained in:
parent
d0f3696596
commit
069bf6dec6
@ -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;
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user