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,
|
DeleteDevicesResponse,
|
||||||
TransportType,
|
TransportType,
|
||||||
RoomMessagesResponse,
|
RoomMessagesResponse,
|
||||||
|
RoomMessagesError,
|
||||||
EncryptionError,
|
EncryptionError,
|
||||||
GroupEncryptionError,
|
GroupEncryptionError,
|
||||||
OlmTrustError,
|
OlmTrustError,
|
||||||
|
@ -1618,8 +1619,9 @@ class MatrixServer(object):
|
||||||
|
|
||||||
if isinstance(response, ErrorResponse):
|
if isinstance(response, ErrorResponse):
|
||||||
self.handle_error_response(response)
|
self.handle_error_response(response)
|
||||||
room_buffer = self.room_buffers[response.room_id]
|
if isinstance(response, RoomMessagesError):
|
||||||
room_buffer.backlog_pending = False
|
room_buffer = self.room_buffers[response.room_id]
|
||||||
|
room_buffer.backlog_pending = False
|
||||||
|
|
||||||
elif isinstance(response, ToDeviceResponse):
|
elif isinstance(response, ToDeviceResponse):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue