mirror of
https://github.com/element-hq/synapse
synced 2024-10-01 05:12:41 +00:00
Add TODO to handle state resets
See https://github.com/element-hq/synapse/pull/17320#discussion_r1656548733
This commit is contained in:
parent
1158058aa5
commit
32b8b68df6
1 changed files with 6 additions and 0 deletions
|
@ -1002,6 +1002,12 @@ class SlidingSyncHandler:
|
|||
|
||||
stripped_state.append(strip_event(invite_or_knock_event))
|
||||
|
||||
# TODO: Handle state resets. For example, if we see
|
||||
# `rooms_membership_for_user_at_to_token.membership = Membership.LEAVE` but
|
||||
# `required_state` doesn't include it, we should indicate to the client that a
|
||||
# state reset happened. Perhaps we should indicate this by setting `initial:
|
||||
# True` and empty `required_state`.
|
||||
|
||||
return SlidingSyncResult.RoomResult(
|
||||
# TODO: Dummy value
|
||||
name=None,
|
||||
|
|
Loading…
Reference in a new issue