]> granicus.if.org Git - ejabberd/commitdiff
Advertise disco#info and disco#items by MUC room
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Thu, 29 Nov 2018 07:35:03 +0000 (10:35 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Thu, 29 Nov 2018 07:35:03 +0000 (10:35 +0300)
Fixes #2661

src/mod_muc_room.erl

index 606c8ad639fc7403a8e786cfb3f684c937331f82..9fd1f8614f625fb14bfa7e9dc2711be6b5f15c68 100644 (file)
@@ -3789,7 +3789,7 @@ destroy_room(DEl, StateData) ->
 -spec make_disco_info(jid(), state()) -> disco_info().
 make_disco_info(_From, StateData) ->
     Config = StateData#state.config,
-    Feats = [?NS_VCARD, ?NS_MUC,
+    Feats = [?NS_VCARD, ?NS_MUC, ?NS_DISCO_INFO, ?NS_DISCO_ITEMS,
             ?CONFIG_OPT_TO_FEATURE((Config#config.public),
                                    <<"muc_public">>, <<"muc_hidden">>),
             ?CONFIG_OPT_TO_FEATURE((Config#config.persistent),