mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 08:02:41 +00:00
Remove required_state for now
This commit is contained in:
parent
5c175d5488
commit
9089bfe4dc
1 changed files with 4 additions and 19 deletions
|
@ -96,9 +96,10 @@ class RoomSyncConfig:
|
|||
|
||||
Attributes:
|
||||
timeline_limit: The maximum number of events to return in the timeline.
|
||||
required_state: The minimum set of state events requested for the room. The
|
||||
values are close to `StateKey` but actually use a syntax where you can provide
|
||||
`*` and `$LAZY` as the state key part of the tuple (type, state_key).
|
||||
required_state: The set of state events requested for the room. The
|
||||
values are close to `StateKey` but actually use a syntax where you can
|
||||
provide `*` wildcard and `$LAZY` for lazy room members as the `state_key` part
|
||||
of the tuple (type, state_key).
|
||||
"""
|
||||
|
||||
timeline_limit: int
|
||||
|
@ -829,22 +830,6 @@ class SlidingSyncHandler:
|
|||
|
||||
stripped_state.append(strip_event(invite_or_knock_event))
|
||||
|
||||
required_state = []
|
||||
if len(room_sync_config.required_state) > 0:
|
||||
await self.storage_controllers.state.get_current_state(
|
||||
room_id,
|
||||
state_filter=StateFilter.from_types(TODO),
|
||||
await_full_state=False,
|
||||
)
|
||||
|
||||
# TODO: rewind
|
||||
|
||||
# required_state = await self.storage_controllers.state.get_state_at(
|
||||
# room_id,
|
||||
# to_token,
|
||||
# state_filter=StateFilter.from_types(TODO),
|
||||
# )
|
||||
|
||||
return SlidingSyncResult.RoomResult(
|
||||
# TODO: Dummy value
|
||||
# TODO: Make this optional because a computed name doesn't make sense for translated cases
|
||||
|
|
Loading…
Reference in a new issue