Add TODO to handle state resets

See https://github.com/element-hq/synapse/pull/17320#discussion_r1656548733
This commit is contained in:
Eric Eastwood 2024-06-27 18:13:34 -05:00
parent 1158058aa5
commit 32b8b68df6

View file

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