mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix bug when displaying offline messages in WebAdmin
This commit is contained in:
parent
c058687bf9
commit
907e239d4e
@ -833,7 +833,7 @@ get_queue_length(LUser, LServer, odbc) ->
|
||||
get_messages_subset(User, Host, MsgsAll, DBType) ->
|
||||
Access = gen_mod:get_module_opt(Host, ?MODULE, access_max_user_messages,
|
||||
max_user_offline_messages),
|
||||
MaxOfflineMsgs = case get_max_user_messages(Access, User, Host) of
|
||||
MaxOfflineMsgs = case get_max_user_messages(Access, {User, Host}, Host) of
|
||||
Number when is_integer(Number) -> Number;
|
||||
_ -> 100
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user