From f3dd57dd7a18eeaa81e0f7544319157cafb523f1 Mon Sep 17 00:00:00 2001 From: missytake Date: Sun, 6 Apr 2025 01:17:44 +0200 Subject: [PATCH] ignore g-e2ee messages --- src/keyserver_bot/hooks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/keyserver_bot/hooks.py b/src/keyserver_bot/hooks.py index 2f51cda..399be5f 100644 --- a/src/keyserver_bot/hooks.py +++ b/src/keyserver_bot/hooks.py @@ -22,11 +22,13 @@ def command(event): if snapshot.text == "/generate-invite": return snapshot.chat.send_text(snapshot.chat.account.get_qr_code()) + if snapshot.text == "Messages are guaranteed to be end-to-end encrypted from now on.": + return email = snapshot.text try: validate_email(email, check_deliverability=False) except EmailNotValidError: - return snapshot.chat.send_text(HELP_MSG) + return snapshot.chat.send_text(HELP_MSG + f"\n\n{email} is not an email address :/") public_key = request_key_by_email(email) if not public_key: