From 65a1324eb08d262edc9280027128734eba4fffdd Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 4 Sep 2020 14:40:00 -0400 Subject: [PATCH] Fix initial and non-initial sync filters reversed Issue introduced in 758edd8a6a404efc44bc70568f703e08927b3680 (0.6.1) The filter for the first sync was passed as the filter for later syncs and vice-versa, which caused problems like redaction events never arriving. --- src/backend/matrix_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/matrix_client.py b/src/backend/matrix_client.py index 0ee86147..0fed88a0 100644 --- a/src/backend/matrix_client.py +++ b/src/backend/matrix_client.py @@ -490,7 +490,7 @@ class MatrixClient(nio.AsyncClient): resp = await self.upload_filter(**first) first_id = resp.filter_id - self._sync_filter_ids = SyncFilterIds(others_id, first_id) + self._sync_filter_ids = SyncFilterIds(first_id, others_id) return self._sync_filter_ids