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

Advertise disco#info and disco#items by MUC room

Fixes #2661
This commit is contained in:
Evgeny Khramtsov 2018-11-29 10:35:03 +03:00
parent 0b31aa490b
commit 3f901b3793

View 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),