mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix bug in mod_pubsub in_subscription return value
This commit is contained in:
parent
0f3bd782c4
commit
fe04d57284
@ -766,13 +766,15 @@ out_subscription(User, Server, JID, subscribed) ->
|
|||||||
[] -> user_resources(PUser, PServer);
|
[] -> user_resources(PUser, PServer);
|
||||||
_ -> [PResource]
|
_ -> [PResource]
|
||||||
end,
|
end,
|
||||||
presence(Server, {presence, PUser, PServer, PResources, Owner});
|
presence(Server, {presence, PUser, PServer, PResources, Owner}),
|
||||||
|
true;
|
||||||
out_subscription(_,_,_,_) ->
|
out_subscription(_,_,_,_) ->
|
||||||
ok.
|
true.
|
||||||
in_subscription(_, User, Server, Owner, unsubscribed, _) ->
|
in_subscription(_, User, Server, Owner, unsubscribed, _) ->
|
||||||
unsubscribe_user(jlib:make_jid(User, Server, ""), Owner);
|
unsubscribe_user(jlib:make_jid(User, Server, ""), Owner),
|
||||||
|
true;
|
||||||
in_subscription(_, _, _, _, _, _) ->
|
in_subscription(_, _, _, _, _, _) ->
|
||||||
ok.
|
true.
|
||||||
|
|
||||||
unsubscribe_user(Entity, Owner) ->
|
unsubscribe_user(Entity, Owner) ->
|
||||||
BJID = jlib:jid_tolower(jlib:jid_remove_resource(Owner)),
|
BJID = jlib:jid_tolower(jlib:jid_remove_resource(Owner)),
|
||||||
|
Loading…
Reference in New Issue
Block a user