25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Fix getting age of newly created rooms in rooms_unused_*

This commit is contained in:
Paweł Chmielowski 2020-12-14 09:46:38 +01:00
parent a76531b90b
commit a9ed26e484

View File

@ -893,7 +893,7 @@ decide_room(unused, {_Room_name, _Host, ServerHost, Room_pid}, Last_allowed) ->
{0, 0}; {0, 0};
Pid when is_pid(Pid) -> Pid when is_pid(Pid) ->
case mod_muc_room:get_state(Room_pid) of case mod_muc_room:get_state(Room_pid) of
#state{just_created = JD, users = U} -> {ok, #state{just_created = JD, users = U}} ->
{JD, maps:size(U)}; {JD, maps:size(U)};
_ -> _ ->
{0, 0} {0, 0}