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

Fix process_discoitems_result in mod_multicast

This commit is contained in:
Paweł Chmielowski 2018-03-28 11:23:28 +02:00
parent d71bc73271
commit dfbdffad44

View File

@ -784,8 +784,9 @@ process_discoitems_result(From, LServiceS, #disco_items{items = Items}) ->
{found_waiter, Waiter} -> {found_waiter, Waiter} ->
List = lists:flatmap( List = lists:flatmap(
fun(#disco_item{jid = #jid{luser = <<"">>, fun(#disco_item{jid = #jid{luser = <<"">>,
lserver = LServer,
lresource = <<"">>} = J}) -> lresource = <<"">>} = J}) ->
[J]; [LServer];
(_) -> (_) ->
[] []
end, Items), end, Items),