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

Fix return values from calculate_diff inside mod_privacy_sql

This commit is contained in:
Paweł Chmielowski 2023-05-02 15:59:40 +02:00
parent 8e64992f47
commit dd2efc360b

View File

@ -425,8 +425,8 @@ set_privacy_list_new(ID, RItems) ->
calculate_difference(List1, List2) ->
Set1 = gb_sets:from_list(List1),
Set2 = gb_sets:from_list(List2),
{gb_sets:subtract(Set1, Set2),
gb_sets:subtract(Set2, Set1)}.
{gb_sets:to_list(gb_sets:subtract(Set1, Set2)),
gb_sets:to_list(gb_sets:subtract(Set2, Set1))}.
set_privacy_list(ID, RItems) ->
case ejabberd_sql:sql_query_t(