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

Fix bug that appears when importing privacy from Prosody (#2872)

This commit is contained in:
Badlop 2019-05-02 21:10:21 +02:00
parent 7a107c02a5
commit 6b0f7f2a24

View File

@ -92,7 +92,7 @@ set_lists(#privacy{us = {LUser, LServer},
lists:foreach( lists:foreach(
fun({Name, List}) -> fun({Name, List}) ->
add_privacy_list(LUser, LServer, Name), add_privacy_list(LUser, LServer, Name),
{selected, [<<"id">>], [[I]]} = {selected, [{I}]} =
get_privacy_list_id_t(LUser, LServer, Name), get_privacy_list_id_t(LUser, LServer, Name),
RItems = lists:map(fun item_to_raw/1, List), RItems = lists:map(fun item_to_raw/1, List),
set_privacy_list(I, RItems), set_privacy_list(I, RItems),