25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix bug when displaying offline messages in WebAdmin

This commit is contained in:
Badlop 2013-02-20 17:26:02 +01:00
parent c058687bf9
commit 907e239d4e

View File

@ -833,7 +833,7 @@ get_queue_length(LUser, LServer, odbc) ->
get_messages_subset(User, Host, MsgsAll, DBType) -> get_messages_subset(User, Host, MsgsAll, DBType) ->
Access = gen_mod:get_module_opt(Host, ?MODULE, access_max_user_messages, Access = gen_mod:get_module_opt(Host, ?MODULE, access_max_user_messages,
max_user_offline_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; Number when is_integer(Number) -> Number;
_ -> 100 _ -> 100
end, end,