24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-12 21:52:07 +02:00

Don't forget to advertise disco features

This commit is contained in:
Evgeniy Khramtsov 2017-01-10 11:25:12 +03:00
parent e01bece552
commit dd5389df23

View File

@ -180,7 +180,8 @@ get_local_features(Acc, _From, _To, <<"">>, _Lang) ->
{result, Features} -> Features; {result, Features} -> Features;
empty -> [] empty -> []
end, end,
{result, [<<"iq">>, <<"presence">>|Feats]}; {result, [<<"iq">>, <<"presence">>,
?NS_DISCO_INFO, ?NS_DISCO_ITEMS |Feats]};
get_local_features(Acc, _From, _To, _Node, Lang) -> get_local_features(Acc, _From, _To, _Node, Lang) ->
case Acc of case Acc of
{result, _Features} -> Acc; {result, _Features} -> Acc;