diff options
author | Alexey Shchepin <alexey@process-one.net> | 2022-03-07 08:42:42 +0300 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2022-03-07 08:42:42 +0300 |
commit | d5841785e1121ccc7cdb6a9e12b9f5f814303000 (patch) | |
tree | 64dbc6a809363553fe4a4f15a09611e082ecd2be /src/mod_muc_admin.erl | |
parent | Determine compile definitions based on Erlang version (diff) |
Diffstat (limited to '')
-rw-r--r-- | src/mod_muc_admin.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index 434559001..0015eb30a 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -1050,8 +1050,8 @@ get_room_occupants(Pid) -> get_room_occupants_number(Room, Host) -> case get_room_pid(Room, Host) of Pid when is_pid(Pid )-> - S = get_room_state(Pid), - maps:size(S#state.users); + {ok, #{occupants_number := N}} = mod_muc_room:get_info(Pid), + N; _ -> throw({error, room_not_found}) end. |