mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Fix wrong virtual host in mod_pubsub:send_stanza (#2930)
This commit is contained in:
parent
4be98b5aef
commit
c0dc95d529
@ -603,7 +603,11 @@ on_user_offline(C2SState, _Reason) ->
|
|||||||
|
|
||||||
-spec out_subscription(presence()) -> any().
|
-spec out_subscription(presence()) -> any().
|
||||||
out_subscription(#presence{type = subscribed, from = From, to = To}) ->
|
out_subscription(#presence{type = subscribed, from = From, to = To}) ->
|
||||||
|
if From#jid.lserver == To#jid.lserver ->
|
||||||
send_last_pep(jid:remove_resource(From), To);
|
send_last_pep(jid:remove_resource(From), To);
|
||||||
|
true ->
|
||||||
|
ok
|
||||||
|
end;
|
||||||
out_subscription(_) ->
|
out_subscription(_) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user