ignore g-e2ee messages
This commit is contained in:
parent
c05580b7cf
commit
f3dd57dd7a
|
|
@ -22,11 +22,13 @@ def command(event):
|
||||||
|
|
||||||
if snapshot.text == "/generate-invite":
|
if snapshot.text == "/generate-invite":
|
||||||
return snapshot.chat.send_text(snapshot.chat.account.get_qr_code())
|
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
|
email = snapshot.text
|
||||||
try:
|
try:
|
||||||
validate_email(email, check_deliverability=False)
|
validate_email(email, check_deliverability=False)
|
||||||
except EmailNotValidError:
|
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)
|
public_key = request_key_by_email(email)
|
||||||
if not public_key:
|
if not public_key:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue