From ab5a2e8d10376c1c984e8b863aaa522ba1920499 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 27 Nov 2024 13:51:34 +0100 Subject: [PATCH] mod_shared_roster: Get back support for groupid@vhost in displayed Feature first implemented by 262157c in ejabberd 2.1.10 Bug introduced with cache improvements by 5b0f0d8 in ejabberd 21.07 --- src/mod_shared_roster.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod_shared_roster.erl b/src/mod_shared_roster.erl index cf1e0f536..45376f19f 100644 --- a/src/mod_shared_roster.erl +++ b/src/mod_shared_roster.erl @@ -494,7 +494,8 @@ get_online_users(Host) -> lists:usort([{U, S} || {U, S, _} <- ejabberd_sm:get_vh_session_list(Host)]). -get_group_users_cached(Host, Group, Cache) -> +get_group_users_cached(Host1, Group1, Cache) -> + {Host, Group} = split_grouphost(Host1, Group1), {Opts, _} = get_groups_opts_cached(Host, Group, Cache), get_group_users(Host, Group, Opts).