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,
|
Response,
|
||||||
Rooms,
|
Rooms,
|
||||||
RoomSendResponse,
|
RoomSendResponse,
|
||||||
|
RoomSendError,
|
||||||
SyncResponse,
|
SyncResponse,
|
||||||
PartialSyncResponse,
|
PartialSyncResponse,
|
||||||
ShareGroupSessionResponse,
|
ShareGroupSessionResponse,
|
||||||
|
@ -1287,7 +1288,7 @@ class MatrixServer(object):
|
||||||
elif isinstance(response, JoinedMembersError):
|
elif isinstance(response, JoinedMembersError):
|
||||||
self.rooms_with_missing_members.append(response.room_id)
|
self.rooms_with_missing_members.append(response.room_id)
|
||||||
self.get_joined_members(self.rooms_with_missing_members.pop())
|
self.get_joined_members(self.rooms_with_missing_members.pop())
|
||||||
elif isinstance(response, RoomSendResponse):
|
elif isinstance(response, RoomSendError):
|
||||||
self.handle_own_messages_error(response)
|
self.handle_own_messages_error(response)
|
||||||
elif isinstance(response, ShareGroupSessionError):
|
elif isinstance(response, ShareGroupSessionError):
|
||||||
self.group_session_shared[response.room_id] = False
|
self.group_session_shared[response.room_id] = False
|
||||||
|
|
Loading…
Reference in a new issue