From 85ee2eec52de01061da26f174ec298aca9dc9285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 26 Mar 2019 18:11:42 +0100 Subject: [PATCH] server: Handle room send errors. --- matrix/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/server.py b/matrix/server.py index 3299c84..92ef787 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -45,6 +45,7 @@ from nio import ( Response, Rooms, RoomSendResponse, + RoomSendError, SyncResponse, PartialSyncResponse, ShareGroupSessionResponse, @@ -1287,7 +1288,7 @@ class MatrixServer(object): elif isinstance(response, JoinedMembersError): self.rooms_with_missing_members.append(response.room_id) self.get_joined_members(self.rooms_with_missing_members.pop()) - elif isinstance(response, RoomSendResponse): + elif isinstance(response, RoomSendError): self.handle_own_messages_error(response) elif isinstance(response, ShareGroupSessionError): self.group_session_shared[response.room_id] = False