Update mod_mam dependencies

This commit is contained in:
Evgeny Khramtsov 2019-04-03 15:01:20 +03:00
parent 17b9dc6035
commit 3013f1b9bc
1 changed files with 5 additions and 2 deletions

View File

@ -245,8 +245,11 @@ reload(Host, NewOpts, OldOpts) ->
ok
end.
depends(_Host, _Opts) ->
[].
depends(_Host, Opts) ->
case proplists:get_bool(user_mucsub_from_muc_archive, Opts) of
true -> [{mod_muc, hard}, {mod_muc_admin, hard}];
false -> []
end.
-spec register_iq_handlers(binary()) -> ok.
register_iq_handlers(Host) ->