25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Advertise MAM (XEP-0313) v0.4 support in room disco

This commit is contained in:
Evgeniy Khramtsov 2015-10-11 19:42:53 +03:00
parent b5ac0db895
commit 87273619a6

View File

@ -760,7 +760,9 @@ iq_disco_info(ServerHost, Lang) ->
case gen_mod:is_loaded(ServerHost, mod_mam) of
true ->
[#xmlel{name = <<"feature">>,
attrs = [{<<"var">>, ?NS_MAM_0}]}];
attrs = [{<<"var">>, ?NS_MAM_0}]},
#xmlel{name = <<"feature">>,
attrs = [{<<"var">>, ?NS_MAM_1}]}];
false ->
[]
end.