From b0526cd90396b9a1e58369a9508fef5ae6dfec46 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 10 Jul 2022 21:00:09 +0200 Subject: mod_mix, mod_mix_pam: Add new MIX namespaces to disco features --- src/mod_mix.erl | 9 +++++---- src/mod_mix_pam.erl | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mod_mix.erl b/src/mod_mix.erl index c278f214..6ac2bd60 100644 --- a/src/mod_mix.erl +++ b/src/mod_mix.erl @@ -168,9 +168,10 @@ process_disco_info(#iq{type = get, to = #jid{luser = <<>>} = To, Identity = #identity{category = <<"conference">>, type = <<"mix">>, name = translate:translate(Lang, Name)}, - Features = [?NS_DISCO_INFO, ?NS_DISCO_ITEMS, - ?NS_MIX_CORE_0, ?NS_MIX_CORE_SEARCHABLE_0, - ?NS_MIX_CORE_CREATE_CHANNEL_0], + Features = [?NS_DISCO_INFO, ?NS_DISCO_ITEMS, ?NS_MIX_CORE_0, + ?NS_MIX_CORE_SEARCHABLE_0, ?NS_MIX_CORE_CREATE_CHANNEL_0, + ?NS_MIX_CORE_1, ?NS_MIX_CORE_SEARCHABLE_1, + ?NS_MIX_CORE_CREATE_CHANNEL_1], xmpp:make_iq_result( IQ, #disco_info{features = Features, identities = [Identity], @@ -186,7 +187,7 @@ process_disco_info(#iq{type = get, to = #jid{luser = <<_, _/binary>>} = To, Identity = #identity{category = <<"conference">>, type = <<"mix">>}, Features = [?NS_DISCO_INFO, ?NS_DISCO_ITEMS, - ?NS_MIX_CORE_0, ?NS_MAM_2], + ?NS_MIX_CORE_0, ?NS_MIX_CORE_1, ?NS_MAM_2], xmpp:make_iq_result( IQ, #disco_info{node = Node, features = Features, diff --git a/src/mod_mix_pam.erl b/src/mod_mix_pam.erl index 08b9125c..e3addafd 100644 --- a/src/mod_mix_pam.erl +++ b/src/mod_mix_pam.erl @@ -181,7 +181,7 @@ bounce_sm_packet(Acc) -> disco_sm_features({error, _Error} = Acc, _From, _To, _Node, _Lang) -> Acc; disco_sm_features(Acc, _From, _To, <<"">>, _Lang) -> - {result, [?NS_MIX_PAM_0 | + {result, [?NS_MIX_PAM_0, ?NS_MIX_PAM_2 | case Acc of {result, Features} -> Features; empty -> [] -- cgit v1.2.3