From 3013f1b9bc5bf27473992799e07cf3438ca63a71 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Wed, 3 Apr 2019 15:01:20 +0300 Subject: [PATCH] Update mod_mam dependencies --- src/mod_mam.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 3e02c5946..2532698a5 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -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) -> -- 2.40.0