mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-17 15:29:23 +02:00
Don't check whether the contact is a locally registered account or not (EJABS-1550)
This commit is contained in:
parent
2d3bbd43d7
commit
2e33904bb8
@ -762,8 +762,8 @@ modify_rosteritem_groups(User, Server, JID, NewGroupsString, SubsString, PushStr
|
|||||||
{U1, S1, _} = jlib:jid_tolower(jlib:string_to_jid(JID)),
|
{U1, S1, _} = jlib:jid_tolower(jlib:string_to_jid(JID)),
|
||||||
NewGroups = string:tokens(NewGroupsString, ";"),
|
NewGroups = string:tokens(NewGroupsString, ";"),
|
||||||
Push = list_to_atom(PushString),
|
Push = list_to_atom(PushString),
|
||||||
case {ejabberd_auth:is_user_exists(U1, S1), ejabberd_auth:is_user_exists(User, Server)} of
|
case ejabberd_auth:is_user_exists(User, Server) of
|
||||||
{true, true} ->
|
true ->
|
||||||
case modify_rosteritem_groups2(User, Server, JID, NewGroups, Push, Nick, Subs) of
|
case modify_rosteritem_groups2(User, Server, JID, NewGroups, Push, Nick, Subs) of
|
||||||
ok ->
|
ok ->
|
||||||
0;
|
0;
|
||||||
|
@ -308,8 +308,8 @@ handler(_State, {call, modify_rosteritem_groups, [{struct, Struct}]}) ->
|
|||||||
{U1, S1, _} = jlib:jid_tolower(jlib:string_to_jid(JID)),
|
{U1, S1, _} = jlib:jid_tolower(jlib:string_to_jid(JID)),
|
||||||
NewGroups = string:tokens(NewGroupsString, ";"),
|
NewGroups = string:tokens(NewGroupsString, ";"),
|
||||||
Push = list_to_atom(PushString),
|
Push = list_to_atom(PushString),
|
||||||
case {ejabberd_auth:is_user_exists(U1, S1), ejabberd_auth:is_user_exists(User, Server)} of
|
case ejabberd_auth:is_user_exists(User, Server) of
|
||||||
{true, true} ->
|
true ->
|
||||||
case modify_rosteritem_groups(User, Server, JID, NewGroups, Push, Nick, Subs) of
|
case modify_rosteritem_groups(User, Server, JID, NewGroups, Push, Nick, Subs) of
|
||||||
ok ->
|
ok ->
|
||||||
{false, {response, [0]}};
|
{false, {response, [0]}};
|
||||||
|
Loading…
Reference in New Issue
Block a user