mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
mod_mix, mod_mix_pam: Add new MIX namespaces to disco features
This commit is contained in:
parent
648245e974
commit
b0526cd903
@ -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,
|
||||
|
@ -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 -> []
|
||||
|
Loading…
Reference in New Issue
Block a user