Only clear backlog_pending flag if the error is an instance of RoomMessagesError

This commit is contained in:
user202729 2020-11-11 20:41:17 +07:00
parent a09aa4d4fc
commit 8ee1a77d16

View file

@ -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