mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Use bare jid when processing roster subscriptions
This commit is contained in:
parent
ef6af11f17
commit
e6d1ff85f1
@ -571,7 +571,7 @@ process_subscription(Direction, User, Server, JID1,
|
|||||||
Type, Reason) ->
|
Type, Reason) ->
|
||||||
LUser = jid:nodeprep(User),
|
LUser = jid:nodeprep(User),
|
||||||
LServer = jid:nameprep(Server),
|
LServer = jid:nameprep(Server),
|
||||||
LJID = jid:tolower(JID1),
|
LJID = jid:tolower(jid:remove_resource(JID1)),
|
||||||
F = fun () ->
|
F = fun () ->
|
||||||
Item = get_roster_item(LUser, LServer, LJID),
|
Item = get_roster_item(LUser, LServer, LJID),
|
||||||
NewState = case Direction of
|
NewState = case Direction of
|
||||||
|
Loading…
Reference in New Issue
Block a user