mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix logic that determines room age when history_size=0
This commit is contained in:
parent
1c6221d8a0
commit
e306cb0797
@ -891,9 +891,8 @@ decide_room(unused, {_Room_name, _Host, ServerHost, Room_pid}, Last_allowed) ->
|
||||
end
|
||||
end,
|
||||
Ts_now = calendar:universal_time(),
|
||||
HistorySize = mod_muc_opt:history_size(ServerHost),
|
||||
{Has_hist, Last} = case p1_queue:is_empty(History) of
|
||||
true when (HistorySize == 0) or (Just_created == true) ->
|
||||
true when Just_created == true ->
|
||||
{false, 0};
|
||||
true ->
|
||||
Ts_diff = (erlang:system_time(microsecond)
|
||||
|
Loading…
Reference in New Issue
Block a user