Only clear backlog_pending flag if the error is an instance of RoomMessagesError
This commit is contained in:
parent
a09aa4d4fc
commit
8ee1a77d16
1 changed files with 4 additions and 2 deletions
|
@ -60,6 +60,7 @@ from nio import (
|
|||
DeleteDevicesResponse,
|
||||
TransportType,
|
||||
RoomMessagesResponse,
|
||||
RoomMessagesError,
|
||||
EncryptionError,
|
||||
GroupEncryptionError,
|
||||
OlmTrustError,
|
||||
|
@ -1618,6 +1619,7 @@ 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue