]> granicus.if.org Git - ejabberd/commitdiff
Update mod_mam dependencies
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Wed, 3 Apr 2019 12:01:20 +0000 (15:01 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Wed, 3 Apr 2019 12:01:20 +0000 (15:01 +0300)
src/mod_mam.erl

index 3e02c5946df6a54875a7591454e4b9afc07288ac..2532698a58ea04c98c09d1e7fb21d8706bfa3938 100644 (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) ->