mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
pubsub: remove useless get_roster_info call
SVN Revision: 1109
This commit is contained in:
parent
8c4042848e
commit
56194f742b
@ -1,3 +1,8 @@
|
||||
2007-12-24 Christophe Romain <christophe.romain@process-one.net>
|
||||
|
||||
* src/mod_pubsub/mod_pubsub.erl: remove useless get_roster_info call in
|
||||
presence_probe handling when access rule is presence
|
||||
|
||||
2007-12-24 Mickael Remond <mremond@process-one.net>
|
||||
|
||||
* doc/release_notes_2.0.0.txt: ejabberd 2.0.0 beta 1 release
|
||||
|
@ -461,15 +461,14 @@ handle_cast({presence, From, To, Packet}, State) ->
|
||||
on_sub_and_presence ->
|
||||
case is_caps_notify(ServerHost, Node, Caps) of
|
||||
true ->
|
||||
AllowedGroups = get_option(Options, roster_groups_allowed),
|
||||
{PresenceSubscription, RosterGroup} = get_roster_info(
|
||||
To#jid.luser, To#jid.lserver, JID, AllowedGroups),
|
||||
Subscribed = case get_option(Options, access_model) of
|
||||
open -> true;
|
||||
presence -> PresenceSubscription;
|
||||
presence -> true;
|
||||
whitelist -> false; % subscribers are added manually
|
||||
authorize -> false; % likewise
|
||||
roster -> RosterGroup
|
||||
roster ->
|
||||
Grps = get_option(Options, roster_groups_allowed),
|
||||
element(2, get_roster_info(To#jid.luser, To#jid.lserver, JID, Grps))
|
||||
end,
|
||||
if Subscribed ->
|
||||
send_last_item(PepKey, Node, JID);
|
||||
|
Loading…
Reference in New Issue
Block a user