25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-18 17:24:31 +01:00

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
This commit is contained in:
Badlop 2024-11-27 13:51:34 +01:00
parent e34c1ebcba
commit ab5a2e8d10

View File

@ -494,7 +494,8 @@ get_online_users(Host) ->
lists:usort([{U, S} lists:usort([{U, S}
|| {U, S, _} <- ejabberd_sm:get_vh_session_list(Host)]). || {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), {Opts, _} = get_groups_opts_cached(Host, Group, Cache),
get_group_users(Host, Group, Opts). get_group_users(Host, Group, Opts).