mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Fix return values from calculate_diff inside mod_privacy_sql
This commit is contained in:
parent
8e64992f47
commit
dd2efc360b
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue