From cab8005bf3c8a188a7fee5a176d13c79d20e34c3 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Fri, 1 Jun 2018 08:56:56 +0300 Subject: [PATCH] Display muc#roomconfig_changesubject in room's disco#info Fixes #2449 --- rebar.config | 2 +- src/mod_muc_room.erl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index cb30f6003..a9dccaac1 100644 --- a/rebar.config +++ b/rebar.config @@ -25,7 +25,7 @@ {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.22"}}}, {stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.11"}}}, {fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.30"}}}, - {xmpp, ".*", {git, "https://github.com/processone/xmpp", "6999333"}}, + {xmpp, ".*", {git, "https://github.com/processone/xmpp", "6e3feb7"}}, {fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.14"}}}, {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}}, {p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.3"}}}, diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 4f7070741..94c9ae327 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -3848,6 +3848,7 @@ iq_disco_info_extras(Lang, StateData) -> Fs1 = [{description, (StateData#state.config)#config.description}, {occupants, ?DICT:size(StateData#state.nicks)}, {contactjid, get_owners(StateData)}, + {changesubject, (StateData#state.config)#config.allow_change_subj}, {lang, (StateData#state.config)#config.lang}], Fs2 = case (StateData#state.config)#config.pubsub of Node when is_binary(Node), Node /= <<"">> ->