Merge branch 'clear_backlog_pending_on_error'
This commit is contained in:
commit
81be90c7c9
1 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,7 @@ from nio import (
|
|||
DeleteDevicesResponse,
|
||||
TransportType,
|
||||
RoomMessagesResponse,
|
||||
RoomMessagesError,
|
||||
EncryptionError,
|
||||
GroupEncryptionError,
|
||||
OlmTrustError,
|
||||
|
@ -1618,6 +1619,9 @@ class MatrixServer(object):
|
|||
|
||||
if isinstance(response, ErrorResponse):
|
||||
self.handle_error_response(response)
|
||||
if isinstance(response, RoomMessagesError):
|
||||
room_buffer = self.room_buffers[response.room_id]
|
||||
room_buffer.backlog_pending = False
|
||||
|
||||
elif isinstance(response, ToDeviceResponse):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue