diff options
Diffstat (limited to 'src/mod_roster.erl')
-rw-r--r-- | src/mod_roster.erl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl index 73e77b24b..47609feaa 100644 --- a/src/mod_roster.erl +++ b/src/mod_roster.erl @@ -568,7 +568,19 @@ get_jid_info(User, JID) -> [#roster{subscription = Subscription, groups = Groups}] -> {Subscription, Groups}; _ -> - {none, []} + LRJID = jlib:jid_tolower(jlib:jid_remove_resource(JID)), + if + LRJID == LJID -> + {none, []}; + true -> + case catch mnesia:dirty_read(roster, {LUser, LRJID}) of + [#roster{subscription = Subscription, + groups = Groups}] -> + {Subscription, Groups}; + _ -> + {none, []} + end + end end. |