diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index da728989c..fdcc7508c 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -1768,7 +1768,7 @@ presence_track(From, To, Packet, StateData) -> From, StateData, exmpp_jid:bare(From), To, Packet), StateData; 'unsubscribe' -> - try_check_privacy_route(subscribe, StateData#state.user, StateData#state.server, + try_check_privacy_route(unsubscribe, StateData#state.user, StateData#state.server, From, StateData, exmpp_jid:bare(From), To, Packet), StateData; 'subscribed' ->