mirror of
https://github.com/element-hq/synapse
synced 2024-07-04 08:43:29 +00:00
Clean up knock_state comments
This commit is contained in:
parent
9089bfe4dc
commit
94279915d4
|
@ -1017,11 +1017,13 @@ class SlidingSyncRestServlet(RestServlet):
|
||||||
|
|
||||||
# Stripped state only applies to invite/knock rooms
|
# Stripped state only applies to invite/knock rooms
|
||||||
if room_result.stripped_state:
|
if room_result.stripped_state:
|
||||||
# TODO: Would be good to rename this to `stripped_state` so it can be
|
# TODO: `knocked_state` but that isn't specced yet.
|
||||||
# shared between invite and knock rooms, see
|
#
|
||||||
|
# TODO: Instead of adding `knocked_state`, it would be good to rename
|
||||||
|
# this to `stripped_state` so it can be shared between invite and knock
|
||||||
|
# rooms, see
|
||||||
# https://github.com/matrix-org/matrix-spec-proposals/pull/3575#discussion_r1117629919
|
# https://github.com/matrix-org/matrix-spec-proposals/pull/3575#discussion_r1117629919
|
||||||
serialized_rooms[room_id]["invite_state"] = room_result.stripped_state
|
serialized_rooms[room_id]["invite_state"] = room_result.stripped_state
|
||||||
# TODO: `knocked_state` but that isn't specced yet
|
|
||||||
|
|
||||||
return serialized_rooms
|
return serialized_rooms
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue