ignore g-e2ee messages

This commit is contained in:
missytake 2025-04-06 01:17:44 +02:00
parent c05580b7cf
commit f3dd57dd7a
Signed by: missytake
GPG key ID: 04CC6658320518DF

View file

@ -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: