diff options
author | David Robertson <davidr@element.io> | 2022-12-12 16:19:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 16:19:30 +0000 |
commit | b5b5f6608462a988b05502a3b70b6a57ca3846d2 (patch) | |
tree | a0f095dda26f6ebeff9fc8867a7d6f3ca608a377 /synapse/rest | |
parent | Revert the deletion of stale devices due to performance issues. (#14662) (diff) | |
download | synapse-b5b5f6608462a988b05502a3b70b6a57ca3846d2.tar.xz |
Move `StateFilter` to `synapse.types` (#14668)
* Move `StateFilter` to `synapse.types` * Changelog
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/admin/rooms.py | 2 | ||||
-rw-r--r-- | synapse/rest/client/room.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/admin/rooms.py b/synapse/rest/admin/rooms.py index 747e6fda83..e957aa28ca 100644 --- a/synapse/rest/admin/rooms.py +++ b/synapse/rest/admin/rooms.py @@ -34,9 +34,9 @@ from synapse.rest.admin._base import ( assert_user_is_admin, ) from synapse.storage.databases.main.room import RoomSortOrder -from synapse.storage.state import StateFilter from synapse.streams.config import PaginationConfig from synapse.types import JsonDict, RoomID, UserID, create_requester +from synapse.types.state import StateFilter from synapse.util import json_decoder if TYPE_CHECKING: diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index 514eb6afc8..790614d721 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -55,9 +55,9 @@ from synapse.logging.opentracing import set_tag from synapse.metrics.background_process_metrics import run_as_background_process from synapse.rest.client._base import client_patterns from synapse.rest.client.transactions import HttpTransactionCache -from synapse.storage.state import StateFilter from synapse.streams.config import PaginationConfig from synapse.types import JsonDict, StreamToken, ThirdPartyInstanceID, UserID +from synapse.types.state import StateFilter from synapse.util import json_decoder from synapse.util.cancellation import cancellable from synapse.util.stringutils import parse_and_validate_server_name, random_string |