25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_mix, mod_mix_pam: Add new MIX namespaces to disco features

This commit is contained in:
Linus Jahn 2022-07-10 21:00:09 +02:00 committed by badlop
parent 648245e974
commit b0526cd903
2 changed files with 6 additions and 5 deletions

View File

@ -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,

View File

@ -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 -> []