mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix return values from calculate_diff inside mod_privacy_sql
This commit is contained in:
parent
8e64992f47
commit
dd2efc360b
@ -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…
Reference in New Issue
Block a user