From ce2269d3ebaa034e96e08f249ffe383c6fa0b8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Tue, 11 Apr 2023 17:15:36 +0200 Subject: [PATCH] Check also in trash --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index da43039c..9cf2d845 100644 --- a/app/models.py +++ b/app/models.py @@ -1531,7 +1531,7 @@ class Alias(Base, ModelMixin): suffix = user.get_random_alias_suffix() email = f"{prefix}.{suffix}@{config.FIRST_ALIAS_DOMAIN}" - if available_sl_email(email, check_trash=False): + if available_sl_email(email): break return Alias.create(