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
1 changed files with 1 additions and 1 deletions

View File

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