25
1
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:
Paweł Chmielowski 2017-12-27 16:14:03 +01:00
parent ef6af11f17
commit e6d1ff85f1

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