From e6d1ff85f13486f62e9ef233372193a3d022cda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Wed, 27 Dec 2017 16:14:03 +0100 Subject: [PATCH] Use bare jid when processing roster subscriptions --- src/mod_roster.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_roster.erl b/src/mod_roster.erl index a86b50d98..14ec23fe1 100644 --- a/src/mod_roster.erl +++ b/src/mod_roster.erl @@ -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