Handle the mysterious 419 login failure code

This commit is contained in:
eta 2020-09-16 15:59:57 +01:00
parent 18dd943d30
commit 378bac1fe6

View file

@ -250,6 +250,11 @@ WhatsXMPP represents users as u440123456789 and groups as g1234-5678."
(admin-msg comp jid "Error: WhatsApp Web denied access. You may have violated the Terms of Service.") (admin-msg comp jid "Error: WhatsApp Web denied access. You may have violated the Terms of Service.")
(admin-presence comp jid "Access denied" "xa") (admin-presence comp jid "Access denied" "xa")
(update-session-data jid ""))) (update-session-data jid "")))
((equal status-code 419)
(progn
(admin-msg comp jid "Error: WhatsApp Web have invalidated this connection for some reason. You'll need to scan the QR code again. (It's unclear why this happens.")
(admin-presence comp jid "Connection invalidated" "xa")
(update-session-data jid "")))
(t (t
(progn (progn
(admin-presence comp jid "Login failure" "xa") (admin-presence comp jid "Login failure" "xa")