aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Bruning <nathan@iperity.com>2018-11-28 18:34:16 +0100
committerNathan Bruning <nathan@iperity.com>2019-06-10 12:49:39 +0200
commitaa489c5a8bac54e7f2fe4b68b42ddfb4d7b82b37 (patch)
tree791d5cfa72f0b69a2605f55841f70741f64189d3
parentFix mod_privacy race condition (diff)
Fix user_send_packet in mod_privacy; was failing on newly created users
-rw-r--r--src/mod_privacy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_privacy.erl b/src/mod_privacy.erl
index 0204e0917..dc52825a1 100644
--- a/src/mod_privacy.erl
+++ b/src/mod_privacy.erl
@@ -434,7 +434,7 @@ user_send_packet({#iq{type = Type,
% Adjust the client's state directly, so the next to-be-processed
% packet will take the active list into account.
{IQ, State#{privacy_active_list => Active}};
- true ->
+ _ ->
{IQ, State}
end;
_ -> {IQ, State}