server: Handle room send errors.
This commit is contained in:
parent
c400404e3d
commit
85ee2eec52
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue