From 8c23028c8ba0972e5c95d383b4c56c2b326ee238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Wed, 14 Feb 2018 13:50:54 +0100 Subject: [PATCH] Execute the send and join events on an 403 error. --- matrix/messages.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/matrix/messages.py b/matrix/messages.py index fc3951b..3e09345 100644 --- a/matrix/messages.py +++ b/matrix/messages.py @@ -775,6 +775,14 @@ def handle_http_response(server, message): event = message.event event.execute() + elif message.type == MessageType.SEND: + event = message.event + event.execute() + + elif message.type == MessageType.JOIN: + event = message.event + event.execute() + else: error_message = ("{prefix}Unhandled 403 error, please inform the " "developers about this: {error}").format(