Use bare jid when processing roster subscriptions

This commit is contained in:
Paweł Chmielowski 2017-12-27 16:14:03 +01:00
parent ef6af11f17
commit e6d1ff85f1
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ process_subscription(Direction, User, Server, JID1,
Type, Reason) ->
LUser = jid:nodeprep(User),
LServer = jid:nameprep(Server),
LJID = jid:tolower(JID1),
LJID = jid:tolower(jid:remove_resource(JID1)),
F = fun () ->
Item = get_roster_item(LUser, LServer, LJID),
NewState = case Direction of