mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Make sure only jabber❌event tag is present in offline event
This commit is contained in:
parent
d0f3696596
commit
069bf6dec6
@ -539,7 +539,7 @@ 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,
|
||||
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